fix: colors wasnt define in BottomBar. now it works

pull/23/head
Rémi REGNAULT 1 year ago
parent 09819727b4
commit cffc79e730

@ -15,7 +15,7 @@ import DarkIcon from '../assets/images/moon.png';
export default function BottomBar({ state, descriptors, navigation }) {
const {theme, toggleTheme} = useContext(ThemeContext);
const toggleColors = useContext(ColorContext).toggleColors;
const { colors, toggleColors } = useContext(ColorContext);
const [iconThemeButton, setThemeIconButton] = useState(( theme === 'dark' ) ? LightIcon : DarkIcon)
const [textThemeButton, setTextThemeButton] = useState(( theme === 'dark' ) ? 'Light' : 'Dark');

Loading…
Cancel
Save