MCPcopy Create free account
hub / github.com/Noumena-Network/code / goToNextStep

Function goToNextStep

src/components/Onboarding.tsx:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 });
59 }, [oauthEnabled]);
60 function goToNextStep() {
61 if (currentStepIndex < steps.length - 1) {
62 const nextIndex = currentStepIndex + 1;
63 setCurrentStepIndex(nextIndex);
64 logEvent('ncode_onboarding_step', {
65 oauthEnabled,
66 stepId: steps[nextIndex]?.id as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
67 });
68 } else {
69 onDone();
70 }
71 }
72 function handleThemeSelection(newTheme: ThemeSetting) {
73 setTheme(newTheme);
74 goToNextStep();

Callers 3

handleThemeSelectionFunction · 0.85
handleApiKeyDoneFunction · 0.85
OnboardingFunction · 0.85

Calls 2

logEventFunction · 0.70
onDoneFunction · 0.50

Tested by

no test coverage detected