Move onboarding to the withAuthRequired HOC

This commit is contained in:
Paul Frazee 2023-08-29 20:20:51 -07:00
parent bf37913701
commit 5d9534ca72
9 changed files with 45 additions and 103 deletions

View file

@ -67,8 +67,6 @@ import {getRoutingInstrumentation} from 'lib/sentry'
import {bskyTitle} from 'lib/strings/headings'
import {JSX} from 'react/jsx-runtime'
import {timeout} from 'lib/async/timeout'
import {RecommendedFeedsScreen} from 'view/screens/onboarding/RecommendedFeeds'
import {WelcomeScreen} from 'view/screens/onboarding/Welcome'
const navigationRef = createNavigationContainerRef<AllNavigatorParams>()
@ -221,22 +219,6 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) {
component={SavedFeeds}
options={{title: title('Edit My Feeds')}}
/>
<Stack.Screen
name="Welcome"
component={WelcomeScreen}
options={{
title: title('Welcome'),
presentation: 'card',
gestureEnabled: false,
}}
/>
<Stack.Screen
name="RecommendedFeeds"
component={RecommendedFeedsScreen}
options={{
title: title('Recommended Feeds'),
}}
/>
</>
)
}