mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix state
This commit is contained in:
@@ -5,7 +5,7 @@ import {w} from '../../utils/utils';
|
||||
import Icon from 'react-native-vector-icons/Feather';
|
||||
import * as Animatable from 'react-native-animatable';
|
||||
import {useAppContext} from '../../provider/useAppContext';
|
||||
import {useTracked} from '../../provider';
|
||||
|
||||
|
||||
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
||||
SafeAreaView,
|
||||
@@ -13,13 +13,14 @@ export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
||||
|
||||
export const SelectionHeader = ({navigation}) => {
|
||||
// State
|
||||
const [state, dispatch] = useTracked();
|
||||
const {colors, selectionMode, selectedItemsList} = state;
|
||||
|
||||
///
|
||||
const updateDB = () => {};
|
||||
const updateSelectionList = () => {};
|
||||
const changeSelectionMode = () => {};
|
||||
const {
|
||||
colors,
|
||||
selectionMode,
|
||||
selectedItemsList,
|
||||
updateDB,
|
||||
updateSelectionList,
|
||||
changeSelectionMode,
|
||||
} = useAppContext();
|
||||
|
||||
// Render
|
||||
|
||||
|
||||
Reference in New Issue
Block a user