MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / goToStep

Function goToStep

packages/app-core/src/components/OnboardingWizard.tsx:147–151  ·  view source on GitHub ↗
(next: StepId)

Source from the content-addressed store, hash-verified

145 const stepIndex = STEP_ORDER.indexOf(stepId)
146
147 const goToStep = (next: StepId): void => {
148 setStepId(next)
149 const nextIdx = STEP_ORDER.indexOf(next)
150 if (nextIdx > maxReachedIndex) setMaxReachedIndex(nextIdx)
151 }
152 const goNext = (): void => {
153 const next = STEP_ORDER[stepIndex + 1]
154 if (next) goToStep(next)

Callers 3

goNextFunction · 0.85
goBackFunction · 0.85
OnboardingWizardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected