simplify onboarding model function naming
This commit is contained in:
parent
a231fdf64e
commit
bcef7400db
4 changed files with 11 additions and 6 deletions
|
@ -125,7 +125,7 @@ export const RecommendedFeeds = observer(({navigation}: Props) => {
|
|||
const store = useStores()
|
||||
|
||||
const next = () => {
|
||||
const nextScreenName = store.onboarding.nextScreenName('RecommendedFeeds')
|
||||
const nextScreenName = store.onboarding.next('RecommendedFeeds')
|
||||
if (nextScreenName) {
|
||||
navigation.navigate(nextScreenName)
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ export const Welcome = observer(({navigation}: Props) => {
|
|||
}, [store.shell.minimalShellMode, store])
|
||||
|
||||
const next = () => {
|
||||
const nextScreenName = store.onboarding.nextScreenName('Welcome')
|
||||
const nextScreenName = store.onboarding.next('Welcome')
|
||||
if (nextScreenName) {
|
||||
navigation.navigate(nextScreenName)
|
||||
}
|
||||
|
|
|
@ -41,10 +41,10 @@ export const HomeScreen = withAuthRequired(
|
|||
>([])
|
||||
|
||||
React.useEffect(() => {
|
||||
if (store.onboarding.isRemaining) {
|
||||
if (store.onboarding.isActive) {
|
||||
navigation.navigate('Welcome')
|
||||
}
|
||||
}, [store.onboarding.isRemaining, navigation])
|
||||
}, [store.onboarding.isActive, navigation])
|
||||
|
||||
React.useEffect(() => {
|
||||
const {pinned} = store.me.savedFeeds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue