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/auth/withAuthRequired.tsx | |
parent | bf37913701836091b3e902694d72d190eeca5ec9 (diff) | |
download | voidsky-5d9534ca7258e6165e537b89d999a8c494501dc0.tar.zst |
Move onboarding to the withAuthRequired HOC
Diffstat (limited to 'src/view/com/auth/withAuthRequired.tsx')
-rw-r--r-- | src/view/com/auth/withAuthRequired.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/com/auth/withAuthRequired.tsx b/src/view/com/auth/withAuthRequired.tsx index 8e57669be..c81c2d5df 100644 --- a/src/view/com/auth/withAuthRequired.tsx +++ b/src/view/com/auth/withAuthRequired.tsx @@ -9,6 +9,7 @@ import {observer} from 'mobx-react-lite' import {useStores} from 'state/index' import {CenteredView} from '../util/Views' import {LoggedOut} from './LoggedOut' +import {Onboarding} from './Onboarding' import {Text} from '../util/text/Text' import {usePalette} from 'lib/hooks/usePalette' import {STATUS_PAGE_URL} from 'lib/constants' @@ -24,6 +25,9 @@ export const withAuthRequired = <P extends object>( if (!store.session.hasSession) { return <LoggedOut /> } + if (store.onboarding.isActive) { + return <Onboarding /> + } return <Component {...props} /> }) |