diff --git a/app/src/Navigation/AuthNavigation/index.jsx b/app/src/Navigation/AuthNavigation/index.jsx index ad912c49..90b5a967 100644 --- a/app/src/Navigation/AuthNavigation/index.jsx +++ b/app/src/Navigation/AuthNavigation/index.jsx @@ -8,6 +8,7 @@ import ForgotPassword from '../../pages/AuthPages/ForgotPassword'; import InitialScreen from '../../pages/AuthPages/InitialScreen'; import Location from '../../pages/AuthPages/Location'; import ConfirmRegister from '../../pages/AuthPages/ConfirmRegister'; +import WalkthroughTutorial from '../../pages/AuthPages/WalkthroughTutorial'; const Stack = createStackNavigator(); const AuthRoutes = () => { @@ -29,6 +30,7 @@ const AuthRoutes = () => { + ); }; diff --git a/app/src/pages/AuthPages/ConfirmRegister/index.jsx b/app/src/pages/AuthPages/ConfirmRegister/index.jsx index ed6942d8..387135db 100644 --- a/app/src/pages/AuthPages/ConfirmRegister/index.jsx +++ b/app/src/pages/AuthPages/ConfirmRegister/index.jsx @@ -36,7 +36,7 @@ export default function ConfirmRegister({ route, navigation }) { } setIsLoading(false); - navigation.navigate('login'); + navigation.navigate('walkthroughTutorial'); } const titleCheckBox = ( diff --git a/app/src/pages/AuthPages/WalkthroughTutorial/index.jsx b/app/src/pages/AuthPages/WalkthroughTutorial/index.jsx new file mode 100644 index 00000000..1bf58f6f --- /dev/null +++ b/app/src/pages/AuthPages/WalkthroughTutorial/index.jsx @@ -0,0 +1,25 @@ +import React from 'react'; +import { Text, View } from 'react-native'; +import { DefaultButton } from '../../../components/atoms/DefaultButton'; +import { WalkthroughStepsContext } from '../../../store/contexts/walkthroughStepsContext'; + +export default function WalkthroughTutorial({ navigation }) { + + const { setWalkthroughStep } = useContext(WalkthroughStepsContext); + + const handleContinue = (shouldRenderTutorial) => { + if (shouldRenderTutorial) setWalkthroughStep(1) + + navigation.navigate('login') + } + + return ( + + Deseja fazer um tutorial inicial? + + + + + + ); +} \ No newline at end of file