diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-05-07 14:21:22 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-05-07 14:21:22 -0400 |
| commit | a2ef180e37211193f41ff5f02e18279e5242c219 (patch) | |
| tree | a65d21e33e432e3f5683b0141f4f149712a56096 /src/routes | |
| parent | fe9d3917b474eeefd026926609f29d2344ad8c53 (diff) | |
renamed onboarding screens, fixed various minor issue, basic info onboarding working
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/onboarding/OnboardingStackNavigator.tsx | 6 | ||||
| -rw-r--r-- | src/routes/onboarding/OnboardingStackScreen.tsx | 24 |
2 files changed, 10 insertions, 20 deletions
diff --git a/src/routes/onboarding/OnboardingStackNavigator.tsx b/src/routes/onboarding/OnboardingStackNavigator.tsx index 761efc91..7a74988b 100644 --- a/src/routes/onboarding/OnboardingStackNavigator.tsx +++ b/src/routes/onboarding/OnboardingStackNavigator.tsx @@ -1,12 +1,10 @@ import {createStackNavigator} from '@react-navigation/stack'; export type OnboardingStackParams = { - RevampedOnboarding: {isPhoneVerified: boolean}; InvitationCodeVerification: {userId: string; username: string}; Login: undefined; - OnboardingStepOne: undefined; - OnboardingStepThree: {userId: string; username: string}; - OnboardingStepTwo: {firstName: string}; + BasicInfoOnboarding: {isPhoneVerified: boolean}; + ProfileInfoOnboarding: {userId: string; username: string}; PasswordReset: {value: string}; PasswordResetRequest: undefined; PasswordVerification: {id: string}; diff --git a/src/routes/onboarding/OnboardingStackScreen.tsx b/src/routes/onboarding/OnboardingStackScreen.tsx index 458697ad..50fd52d6 100644 --- a/src/routes/onboarding/OnboardingStackScreen.tsx +++ b/src/routes/onboarding/OnboardingStackScreen.tsx @@ -1,18 +1,16 @@ import {StackCardInterpolationProps} from '@react-navigation/stack'; import React from 'react'; import { + BasicInfoOnboarding, InvitationCodeVerification, Login, - OnboardingStepThree, - OnboardingStepTwo, PasswordReset, PasswordResetRequest, PasswordVerification, PhoneVerification, + ProfileInfoOnboarding, WelcomeScreen, - RevampedOnboarding } from '../../screens'; -import OnboardingStepOne from '../../screens/onboarding/OnboardingStepOne'; import {modalStyle} from '../main'; import {OnboardingStack} from './OnboardingStackNavigator'; @@ -44,7 +42,10 @@ const Onboarding: React.FC = () => { }} /> <OnboardingStack.Screen name="WelcomeScreen" component={WelcomeScreen} /> - <OnboardingStack.Screen name="RevampedOnboarding" component={RevampedOnboarding} /> + <OnboardingStack.Screen + name="BasicInfoOnboarding" + component={BasicInfoOnboarding} + /> <OnboardingStack.Screen name="PasswordReset" component={PasswordReset} @@ -61,22 +62,13 @@ const Onboarding: React.FC = () => { }} /> <OnboardingStack.Screen - name="OnboardingStepOne" - component={OnboardingStepOne} - /> - <OnboardingStack.Screen name="PhoneVerification" component={PhoneVerification} options={{...modalStyle}} /> <OnboardingStack.Screen - name="OnboardingStepTwo" - component={OnboardingStepTwo} - options={{...modalStyle}} - /> - <OnboardingStack.Screen - name="OnboardingStepThree" - component={OnboardingStepThree} + name="ProfileInfoOnboarding" + component={ProfileInfoOnboarding} options={{...modalStyle}} /> <OnboardingStack.Screen |
