about summary refs log tree commit diff
path: root/src/view/com/auth/withAuthRequired.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-30 16:18:21 -0700
committerPaul Frazee <pfrazee@gmail.com>2023-08-30 16:18:21 -0700
commitf9cab178b9ee2a0ccfde7e0e2cbabff7600de69c (patch)
treec8609bd39cad46a232153a3d3a598ed1b667a027 /src/view/com/auth/withAuthRequired.tsx
parent9446c67880331452b3f79dabda183c23718edfa1 (diff)
parent59dcedeea25804188b3503dbf166fa794af20612 (diff)
downloadvoidsky-f9cab178b9ee2a0ccfde7e0e2cbabff7600de69c.tar.zst
Merge branch 'ansh/app-812-add-custom-feed-discovery-to-onboarding' into main
Diffstat (limited to 'src/view/com/auth/withAuthRequired.tsx')
-rw-r--r--src/view/com/auth/withAuthRequired.tsx4
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} />
   })