Skip to content

Commit 51c2882

Browse files
committed
fix(tutorial): added tutorials for v2 path too
1 parent 60f001b commit 51c2882

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

helpers/driverjsTutorials.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,22 @@ const diffTutorials: TutorialMetadata[] = [
9090
},
9191
]
9292

93+
const comparePageTutorials: TutorialMetadata[] = [
94+
{
95+
tutorial: labelsTutorial,
96+
cookieName: 'isSkipTutorial',
97+
},
98+
{
99+
tutorial: submitShortcutTutorial,
100+
cookieName: 'isSkipSubmitKbdShortcutTutorial',
101+
},
102+
]
103+
93104
const tutorialsMetadata: TutorialsMetadata = {
94105
'/v1/diff': diffTutorials,
95-
'v2/diff': diffTutorials,
96-
'/': [
97-
{
98-
tutorial: labelsTutorial,
99-
cookieName: 'isSkipTutorial',
100-
},
101-
{
102-
tutorial: submitShortcutTutorial,
103-
cookieName: 'isSkipSubmitKbdShortcutTutorial',
104-
},
105-
],
106+
'/v2/diff': diffTutorials,
107+
'/': comparePageTutorials,
108+
'/v2': comparePageTutorials,
106109
}
107110

108111
export default async function showTutorials(

0 commit comments

Comments
 (0)