(name: keyof State['iconsColor'])
| 134 | }); |
| 135 | |
| 136 | const changeIconColor = (name: keyof State['iconsColor']) => { |
| 137 | const color = state.iconsColor[name]; |
| 138 | |
| 139 | const newColors = { |
| 140 | ...state.iconsColor, |
| 141 | [name]: !color |
| 142 | ? theme.isV3 |
| 143 | ? theme.colors.primary |
| 144 | : theme.colors?.accent |
| 145 | : undefined, |
| 146 | }; |
| 147 | |
| 148 | dispatch({ |
| 149 | type: 'iconsColor', |
| 150 | payload: newColors, |
| 151 | }); |
| 152 | }; |
| 153 | |
| 154 | const [fontsLoaded] = useFonts({ |
| 155 | Abel: require('../../assets/fonts/Abel-Regular.ttf'), |
no outgoing calls
no test coverage detected
searching dependent graphs…