diff options
author | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-28 18:47:56 -0700 |
---|---|---|
committer | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-28 18:47:56 -0700 |
commit | bcef7400db65b1a1ce01c655bc0e16530254de5a (patch) | |
tree | 0d36e71715a487c8ee0577864ca6547b7489bf42 /src/state | |
parent | a231fdf64e2b2801b055e355dddcef06dfb3f47e (diff) | |
download | voidsky-bcef7400db65b1a1ce01c655bc0e16530254de5a.tar.zst |
simplify onboarding model function naming
Diffstat (limited to 'src/state')
-rw-r--r-- | src/state/models/discovery/onboarding.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/state/models/discovery/onboarding.ts b/src/state/models/discovery/onboarding.ts index 02a7b7a0b..cb0c21371 100644 --- a/src/state/models/discovery/onboarding.ts +++ b/src/state/models/discovery/onboarding.ts @@ -47,7 +47,12 @@ export class OnboardingModel { } } - nextScreenName(currentScreenName?: OnboardingStep) { + /** + * Returns the name of the next screen in the onboarding process based on the current step or screen name provided. + * @param {OnboardingStep} [currentScreenName] + * @returns name of next screen in the onboarding process + */ + next(currentScreenName?: OnboardingStep) { if (currentScreenName === 'Welcome' || this.step === 'Welcome') { track('Onboarding:Begin') this.step = 'RecommendedFeeds' @@ -78,7 +83,7 @@ export class OnboardingModel { return this.step === 'Home' } - get isRemaining() { + get isActive() { return !this.isComplete } } |