mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix state
This commit is contained in:
@@ -19,7 +19,7 @@ import NavigationService from '../../services/NavigationService';
|
||||
import * as Animatable from 'react-native-animatable';
|
||||
import {useAppContext} from '../../provider/useAppContext';
|
||||
import {DDS} from '../../../App';
|
||||
import {useTracked} from '../../provider';
|
||||
|
||||
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
||||
SafeAreaView,
|
||||
);
|
||||
@@ -31,8 +31,7 @@ export const Container = ({
|
||||
noBottomButton = false,
|
||||
}) => {
|
||||
// State
|
||||
const [state, dispatch] = useTracked();
|
||||
const {colors} = state;
|
||||
const {colors} = useAppContext();
|
||||
|
||||
const [buttonHide, setButtonHide] = useState(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user