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:
@@ -28,6 +28,7 @@ import {FlatList, TextInput} from 'react-native-gesture-handler';
|
||||
import {useForceUpdate} from '../../views/ListsEditor';
|
||||
import {db} from '../../../App';
|
||||
import {useAppContext} from '../../provider/useAppContext';
|
||||
import {useTracked} from '../../provider';
|
||||
|
||||
export const AddTopicDialog = ({
|
||||
visible,
|
||||
@@ -35,7 +36,8 @@ export const AddTopicDialog = ({
|
||||
notebookID,
|
||||
toEdit = null,
|
||||
}) => {
|
||||
const {colors} = useAppContext();
|
||||
const [state, dispatch] = useTracked();
|
||||
const {colors} = state;
|
||||
const [titleFocused, setTitleFocused] = useState(false);
|
||||
|
||||
let title = null;
|
||||
|
||||
Reference in New Issue
Block a user