Skip to content

Commit

Permalink
Merge pull request #382 from cultuurnet/bugfix/UIT-231-infinite-spinner
Browse files Browse the repository at this point in the history
UIT-231: Make sure the ProfileNotFound route is always available
  • Loading branch information
hstandaert committed Jan 19, 2024
2 parents be0d046 + 662b6f5 commit e3376a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_routing/_components/RootStackNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export const RootStackNavigator = () => {
{!isAuthenticated && !isPolicyApprovedInStorage && <RootStack.Screen component={Onboarding} name="Onboarding" />}
{isAuthenticated && versions?.isBehindMinVersion && <RootStack.Screen component={UpdateScreen} name="Update" />}
{!isAuthenticated && <RootStack.Screen component={Login} name="Login" />}
{isAuthenticated && (
<RootStack.Screen component={ProfileNotFound} name="ProfileNotFound" options={{ gestureEnabled: false }} />
)}
</RootStack.Group>
{isAuthenticated && showFamilyOnboarding && (
<RootStack.Group navigationKey={showFamilyOnboarding.toString()} screenOptions={{ headerShown: true }}>
Expand Down Expand Up @@ -154,7 +157,6 @@ export const RootStackNavigator = () => {
})}
/>
<RootStack.Group screenOptions={{ headerShown: false }}>
<RootStack.Screen component={ProfileNotFound} name="ProfileNotFound" options={{ gestureEnabled: false }} />
<RootStack.Screen component={FamilyCheckinSummary} name="FamilyCheckinSummary" options={{ gestureEnabled: false }} />
<RootStack.Screen component={ScanSuccess} name="ScanSuccess" options={{ gestureEnabled: false }} />
<RootStack.Screen component={Error} name="Error" options={{ gestureEnabled: false }} />
Expand Down

0 comments on commit e3376a0

Please sign in to comment.