diff options
author | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-28 18:53:58 -0700 |
---|---|---|
committer | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-28 18:53:58 -0700 |
commit | 8f0f3be8fb6255df5be6b4650b0770e7829e1a60 (patch) | |
tree | dc75cf458e370692bfcdf0753df732e978a83ee1 /src/state/models/ui | |
parent | bcef7400db65b1a1ce01c655bc0e16530254de5a (diff) | |
download | voidsky-8f0f3be8fb6255df5be6b4650b0770e7829e1a60.tar.zst |
start onboarding only for new account creations
Diffstat (limited to 'src/state/models/ui')
-rw-r--r-- | src/state/models/ui/create-account.ts | 4 | ||||
-rw-r--r-- | src/state/models/ui/shell.ts | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/state/models/ui/create-account.ts b/src/state/models/ui/create-account.ts index 04e1554c6..d9d4f51b9 100644 --- a/src/state/models/ui/create-account.ts +++ b/src/state/models/ui/create-account.ts @@ -109,10 +109,10 @@ export class CreateAccountModel { this.setError('') this.setIsProcessing(true) - // open the onboarding modal after the session is created + // open the onboarding screens after the session is created const sessionReadySub = this.rootStore.onSessionReady(() => { sessionReadySub.remove() - this.rootStore.shell.openModal({name: 'onboarding'}) + this.rootStore.onboarding.start() }) try { diff --git a/src/state/models/ui/shell.ts b/src/state/models/ui/shell.ts index 6f6ed06bc..a64047f9f 100644 --- a/src/state/models/ui/shell.ts +++ b/src/state/models/ui/shell.ts @@ -140,10 +140,6 @@ export interface PreferencesHomeFeed { name: 'preferences-home-feed' } -export interface OnboardingModal { - name: 'onboarding' -} - export type Modal = // Account | AddAppPasswordModal @@ -176,9 +172,6 @@ export type Modal = | WaitlistModal | InviteCodesModal - // Onboarding - | OnboardingModal - // Generic | ConfirmModal |