mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Nux after onboarding (#5357)

* Don't show nux dialogs until post-onboarding

* Don't show if over 10M

authored by

Eric Bailey and committed by
GitHub
61deab70 d6c11a72

+4 -2
+1 -1
src/components/dialogs/nuxs/TenMillion/index.tsx
··· 115 115 116 116 const data = await res.json() 117 117 118 - if (data.number) { 118 + if (data.number && data.number <= 10_000_000) { 119 119 setUserNumber(data.number) 120 120 } else { 121 121 // should be rare
+3 -1
src/components/dialogs/nuxs/index.tsx
··· 9 9 useUpsertNuxMutation, 10 10 } from '#/state/queries/nuxs' 11 11 import {useSession} from '#/state/session' 12 + import {useOnboardingState} from '#/state/shell' 12 13 import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing' 13 14 import {TenMillion} from '#/components/dialogs/nuxs/TenMillion' 14 15 import {IS_DEV} from '#/env' ··· 57 58 58 59 export function NuxDialogs() { 59 60 const {hasSession} = useSession() 60 - return hasSession ? <Inner /> : null 61 + const onboardingState = useOnboardingState() 62 + return hasSession && !onboardingState.isActive ? <Inner /> : null 61 63 } 62 64 63 65 function Inner() {