mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
shift theme loading to context
This commit is contained in:
@@ -28,11 +28,12 @@ import {getElevation, h, w, timeSince, ToastEvent} from '../../utils/utils';
|
||||
import {FlatList, TextInput} from 'react-native-gesture-handler';
|
||||
import {useForceUpdate} from '../../views/ListsEditor';
|
||||
import {db, DDS} from '../../../App';
|
||||
import {useAppContext} from '../../provider/useAppContext';
|
||||
|
||||
let refs = [];
|
||||
|
||||
export const AddNotebookDialog = ({visible, close}) => {
|
||||
const [colors, setColors] = useState(COLOR_SCHEME);
|
||||
const {colors} = useAppContext();
|
||||
const [topics, setTopics] = useState(['']);
|
||||
const [title, setTitle] = useState(null);
|
||||
const forceUpdate = useForceUpdate();
|
||||
|
||||
Reference in New Issue
Block a user