Skip to content

Commit

Permalink
Merge remote-tracking branch 'kakkokari/feat-12997' into feat-onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Aug 13, 2024
2 parents 8ae2946 + dc4e2ea commit 3172301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/components/MkTutorial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ type ComponentDef = {
*
* (メタデータは上の方で定義しています)
*/
const componentsDef: Tuple<ComponentDef, typeof tutorialBodyPagesDef.length> = [
const componentsDef = [
{ component: XProfileSettings },
{ component: XNote, props: { phase: 'aboutNote' } },
{ component: XNote, props: { phase: 'howToReact' } },
Expand All @@ -201,14 +201,14 @@ const componentsDef: Tuple<ComponentDef, typeof tutorialBodyPagesDef.length> = [
{ component: XPostNote },
{ component: XSensitive },
{ component: XPrivacySettings },
] as const satisfies ComponentDef[];
] as const satisfies Tuple<ComponentDef, typeof tutorialBodyPagesDef.length>;

// eslint-disable-next-line vue/no-setup-props-destructure
const page = ref(props.initialPage ?? 0);

const currentPageDef = computed(() => {
if (page.value > 0 && page.value < MAX_PAGE - 1) {
return tutorialBodyPagesDef[page.value - 1];
return tutorialBodyPagesDef[page.value - 1] ?? null;
} else {
return null;
}
Expand Down

0 comments on commit 3172301

Please sign in to comment.