Skip to content

Commit

Permalink
Delay opening welcome video
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Mar 11, 2024
1 parent 3abe476 commit 253f86a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/OnboardingPurpose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function OnboardingPurpose() {
Report.navigateToConciergeChat();
}

Navigation.navigate(ROUTES.WELCOME_VIDEO_ROOT);
setTimeout(() => {
Navigation.navigate(ROUTES.WELCOME_VIDEO_ROOT);
}, variables.welcomeVideoDelay);
}, [isSmallScreenWidth, selectedPurpose]);

const menuItems: MenuItemProps[] = Object.values(CONST.ONBOARDING_CHOICES).map((choice) => {
Expand Down
1 change: 1 addition & 0 deletions src/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export default {
sectionIllustrationHeight: 220,
photoUploadPopoverWidth: 335,
onboardingModalWidth: 500,
welcomeVideoDelay: 500,

// The height of the empty list is 14px (2px for borders and 12px for vertical padding)
// This is calculated based on the values specified in the 'getGoogleListViewStyle' function of the 'StyleUtils' utility
Expand Down

0 comments on commit 253f86a

Please sign in to comment.