File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import { ONBOARDING_KEY_RADIAL_GRADIENT } from '../utils/constants.ts';
1111import { useNavigation } from '@react-navigation/native' ;
1212import { NativeStackNavigationProp } from '@react-navigation/native-stack' ;
1313import { RootStackParamList } from '../navigation/types.ts' ;
14+ import { updateShowOnboarding } from '../store/slices/settingsSlice.ts' ;
15+ import { useDispatch } from 'react-redux' ;
1416
1517type NavigationProp = NativeStackNavigationProp <
1618 RootStackParamList ,
@@ -19,10 +21,12 @@ type NavigationProp = NativeStackNavigationProp<
1921
2022const OnboardingContent = ( ) : ReactElement => {
2123 const navigation = useNavigation < NavigationProp > ( ) ;
24+ const dispatch = useDispatch ( ) ;
2225
2326 const navigateHome = useCallback ( ( ) => {
27+ dispatch ( updateShowOnboarding ( { showOnboarding : false } ) ) ;
2428 navigation . replace ( 'Home' ) ;
25- } , [ navigation ] ) ;
29+ } , [ dispatch , navigation ] ) ;
2630
2731 return (
2832 < View style = { styles . container } >
You can’t perform that action at this time.
0 commit comments