(pos = 0)
| 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 = [], |
no outgoing calls
no test coverage detected