Skip to content

Commit

Permalink
add temporary onboarding navigation button for QA testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Mar 26, 2024
1 parent 1e77fbe commit 39b95f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/TestToolMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import * as Network from '@userActions/Network';
import * as Session from '@userActions/Session';
import * as User from '@userActions/User';
import CONFIG from '@src/CONFIG';
import Navigation from '@libs/Navigation/Navigation';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Network as NetworkOnyx, User as UserOnyx} from '@src/types/onyx';
import ROUTES from '@src/ROUTES';
import Button from './Button';
import {withNetwork} from './OnyxProvider';
import Switch from './Switch';
Expand Down Expand Up @@ -87,6 +89,15 @@ function TestToolMenu({user = USER_DEFAULT, network}: TestToolMenuProps) {
onPress={() => Session.invalidateCredentials()}
/>
</TestToolRow>

{/* Navigate to the new Onboarding flow (Stage 1). This button is temporary and should be removed after passing QA tests. */}
<TestToolRow title="Onboarding Flow">
<Button
small
text="Navigate"
onPress={() => Navigation.navigate(ROUTES.ONBOARDING_PERSONAL_DETAILS)}
/>
</TestToolRow>
</>
);
}
Expand Down

0 comments on commit 39b95f7

Please sign in to comment.