mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
update state managment
This commit is contained in:
@@ -21,8 +21,14 @@ import {h} from '../../utils/utils';
|
||||
import {AnimatedSafeAreaView} from '../../views/Home';
|
||||
import {useAppContext} from '../../provider/useAppContext';
|
||||
import FastStorage from 'react-native-fast-storage';
|
||||
import {useTracked} from '../../provider';
|
||||
export const Menu = ({close = () => {}, hide, update = () => {}}) => {
|
||||
const {colors, changeColorScheme} = useAppContext();
|
||||
const [state, dispatch] = useTracked();
|
||||
const {colors} = state;
|
||||
|
||||
// todo
|
||||
|
||||
const changeColorScheme = () => {};
|
||||
|
||||
const listItems = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user