mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
fix state
This commit is contained in:
@@ -13,13 +13,12 @@ import {getElevation, ToastEvent} from '../../utils/utils';
|
||||
import {FlatList, TextInput} from 'react-native-gesture-handler';
|
||||
import {db, DDS} from '../../../App';
|
||||
import {useAppContext} from '../../provider/useAppContext';
|
||||
import {useTracked} from '../../provider';
|
||||
|
||||
|
||||
let refs = [];
|
||||
|
||||
export const AddNotebookDialog = ({visible, close, toEdit = null}) => {
|
||||
const [state, dispatch] = useTracked();
|
||||
const {colors} = state;
|
||||
const {colors} = useAppContext();
|
||||
|
||||
const [topics, setTopics] = useState(['']);
|
||||
const [title, setTitle] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user