Skip to content

Commit fbfe967

Browse files
committed
feat(frontend): add second tour step for movie section navigation
1 parent d8ee178 commit fbfe967

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

apps/frontend/app/lib/state/general.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ import type { Step } from "react-joyride";
44

55
export const tourSteps = [
66
{
7-
target: "tour-step-1",
7+
target: ".tour-step-1",
88
content:
99
"Welcome to Ryot! Let's get started by adding a movie to your watchlist. Click on the media section in the sidebar to see what all you can track.",
1010
},
11+
{
12+
target: ".tour-step-2",
13+
content:
14+
"Now, click on the movies section to start tracking your favorite movies.",
15+
},
1116
] as Step[];
1217

1318
const onboardingTourAtom = atom<

apps/frontend/app/routes/_dashboard.tsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,16 @@ export default function Layout() {
399399

400400
return (
401401
<>
402-
<Joyride steps={tourSteps} run={isTourStarted} stepIndex={stepIndex} />
402+
<ClientOnly>
403+
{() => (
404+
<Joyride
405+
continuous
406+
steps={tourSteps}
407+
run={isTourStarted}
408+
stepIndex={stepIndex}
409+
/>
410+
)}
411+
</ClientOnly>
403412
{isFitnessActionActive &&
404413
!Object.values(FitnessAction)
405414
.map((action) => $path("/fitness/:action", { action }))

0 commit comments

Comments
 (0)