MCPcopy Create free account
hub / github.com/Lobos/react-ui / getIcon

Method getIcon

src/Rating.js:48–60  ·  view source on GitHub ↗
(pos = 0)

Source from the content-addressed store, hash-verified

46 }
47
48 getIcon (pos = 0) {
49 let icons = this.props.icons;
50 if (!icons) {
51 let theme = this.props.theme || Object.keys(themes)[0];
52 icons = themes[theme];
53 }
54 if (!icons) {
55 console.warn('icons or theme not exist');
56 return null;
57 }
58
59 return icons[pos];
60 }
61
62 getBackground () {
63 let items = [],

Callers 3

getBackgroundMethod · 0.95
getHandleMethod · 0.95
Rating.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected