about summary refs log tree commit diff
path: root/src/components/dialogs/nuxs/index.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-09-15 14:58:10 -0500
committerGitHub <noreply@github.com>2024-09-15 14:58:10 -0500
commit61deab705162300400ff6c869e525fb48ecc6804 (patch)
treec024312e72b3687b2de6898a9ce992e4619b6767 /src/components/dialogs/nuxs/index.tsx
parentd6c11a723195e6158db6c4da9df172fb1acfecc0 (diff)
downloadvoidsky-61deab705162300400ff6c869e525fb48ecc6804.tar.zst
Nux after onboarding (#5357)
* Don't show nux dialogs until post-onboarding

* Don't show if over 10M
Diffstat (limited to 'src/components/dialogs/nuxs/index.tsx')
-rw-r--r--src/components/dialogs/nuxs/index.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx
index 781696070..a13d99eb2 100644
--- a/src/components/dialogs/nuxs/index.tsx
+++ b/src/components/dialogs/nuxs/index.tsx
@@ -9,6 +9,7 @@ import {
   useUpsertNuxMutation,
 } from '#/state/queries/nuxs'
 import {useSession} from '#/state/session'
+import {useOnboardingState} from '#/state/shell'
 import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing'
 import {TenMillion} from '#/components/dialogs/nuxs/TenMillion'
 import {IS_DEV} from '#/env'
@@ -57,7 +58,8 @@ export function useNuxDialogContext() {
 
 export function NuxDialogs() {
   const {hasSession} = useSession()
-  return hasSession ? <Inner /> : null
+  const onboardingState = useOnboardingState()
+  return hasSession && !onboardingState.isActive ? <Inner /> : null
 }
 
 function Inner() {