diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-29 20:20:51 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-08-29 20:20:51 -0700 |
commit | 5d9534ca7258e6165e537b89d999a8c494501dc0 (patch) | |
tree | ecbfc3b98851698be6c701ab9ee3f4796d77501d /src/view/com/modals/OnboardingModal.tsx | |
parent | bf37913701836091b3e902694d72d190eeca5ec9 (diff) | |
download | voidsky-5d9534ca7258e6165e537b89d999a8c494501dc0.tar.zst |
Move onboarding to the withAuthRequired HOC
Diffstat (limited to 'src/view/com/modals/OnboardingModal.tsx')
-rw-r--r-- | src/view/com/modals/OnboardingModal.tsx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/view/com/modals/OnboardingModal.tsx b/src/view/com/modals/OnboardingModal.tsx deleted file mode 100644 index 3862736cf..000000000 --- a/src/view/com/modals/OnboardingModal.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react' -import {StyleSheet, View} from 'react-native' -import {useStores} from 'state/index' - -import {usePalette} from 'lib/hooks/usePalette' -import {isDesktopWeb} from 'platform/detection' -import {Welcome} from '../auth/onboarding/Welcome' -import {observer} from 'mobx-react-lite' -import {RecommendedFeeds} from '../auth/onboarding/RecommendedFeeds' - -export const snapPoints = ['90%'] - -export const Component = observer(({}: {}) => { - const pal = usePalette('default') - const store = useStores() - - const next = () => { - const nextScreenName = store.onboarding.next() - if (nextScreenName === 'Home') { - store.shell.closeModal() - } - } - - return ( - <View style={[styles.container, pal.view]} testID="onboardingModal"> - {store.onboarding.step === 'Welcome' ? <Welcome next={next} /> : null} - {store.onboarding.step === 'RecommendedFeeds' ? ( - <RecommendedFeeds next={next} /> - ) : null} - </View> - ) -}) - -const styles = StyleSheet.create({ - container: { - flex: 1, - paddingBottom: isDesktopWeb ? 0 : 50, - maxHeight: '750px', - }, -}) |