diff options
author | Eric Bailey <git@esb.lol> | 2024-04-23 19:30:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 19:30:49 -0500 |
commit | 05beb1bbadf86f8b20ab950497947e31beea798e (patch) | |
tree | ca76be69245af99b200b04603f83246d4b3697da /src/view/com/auth/Onboarding.tsx | |
parent | 24da3a8f4e81e0f7694b02545711536414dcd17a (diff) | |
download | voidsky-05beb1bbadf86f8b20ab950497947e31beea798e.tar.zst |
Remove old old onboarding (#3674)
Diffstat (limited to 'src/view/com/auth/Onboarding.tsx')
-rw-r--r-- | src/view/com/auth/Onboarding.tsx | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/view/com/auth/Onboarding.tsx b/src/view/com/auth/Onboarding.tsx deleted file mode 100644 index bdb7f27c8..000000000 --- a/src/view/com/auth/Onboarding.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react' -import {SafeAreaView, Platform} from 'react-native' -import {ErrorBoundary} from 'view/com/util/ErrorBoundary' -import {s} from 'lib/styles' -import {usePalette} from 'lib/hooks/usePalette' -import {Welcome} from './onboarding/Welcome' -import {RecommendedFeeds} from './onboarding/RecommendedFeeds' -import {RecommendedFollows} from './onboarding/RecommendedFollows' -import {useSetMinimalShellMode} from '#/state/shell/minimal-mode' -import {useOnboardingState, useOnboardingDispatch} from '#/state/shell' - -export function Onboarding() { - const pal = usePalette('default') - const setMinimalShellMode = useSetMinimalShellMode() - const onboardingState = useOnboardingState() - const onboardingDispatch = useOnboardingDispatch() - - React.useEffect(() => { - setMinimalShellMode(true) - }, [setMinimalShellMode]) - - const next = () => onboardingDispatch({type: 'next'}) - const skip = () => onboardingDispatch({type: 'skip'}) - - return ( - <SafeAreaView - testID="onboardingView" - style={[ - s.hContentRegion, - pal.view, - // @ts-ignore web only -esb - Platform.select({ - web: { - height: '100vh', - }, - }), - ]}> - <ErrorBoundary> - {onboardingState.step === 'Welcome' && ( - <Welcome skip={skip} next={next} /> - )} - {onboardingState.step === 'RecommendedFeeds' && ( - <RecommendedFeeds next={next} /> - )} - {onboardingState.step === 'RecommendedFollows' && ( - <RecommendedFollows next={next} /> - )} - </ErrorBoundary> - </SafeAreaView> - ) -} |