MCPcopy Create free account
hub / github.com/amelioro/ameliorate / startWelcomeTutorial

Function startWelcomeTutorial

src/web/tutorial/tutorial.ts:62–70  ·  view source on GitHub ↗
(track: Track)

Source from the content-addressed store, hash-verified

60};
61
62export const startWelcomeTutorial = (track: Track) => {
63 if (!reactour || !reactour.setSteps) throw new Error("Tour props not set");
64
65 const steps = welcomeSteps(track);
66 reactour.setSteps(steps);
67 setTutorialHasCompleted("welcome");
68
69 reactour.setIsOpen(true);
70};
71
72export const startTutorial = (tutorial: Tutorial, track: Track | null) => {
73 if (!reactour || !reactour.setSteps) throw new Error("Tour props not set");

Callers 1

TutorialControllerFunction · 0.90

Calls 2

welcomeStepsFunction · 0.90
setTutorialHasCompletedFunction · 0.90

Tested by

no test coverage detected