Skip to content

Commit

Permalink
fix: update pages path in the layout example comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov committed Jul 26, 2024
1 parent a7bd1f3 commit 0c94cab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/generators/inertia/install/templates/react/inertia.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ createInertiaApp({
// and use the following lines.
// see https://inertia-rails.netlify.app/guide/pages#default-layouts
//
// const page = pages[`./pages/${name}.jsx`]
// const page = pages[`../pages/${name}.jsx`]
// page.default.layout ||= (page) => createElement(Layout, null, page)
// return page
},
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/inertia/install/templates/svelte/inertia.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ createInertiaApp({
// and use the following lines.
// see https://inertia-rails.netlify.app/guide/pages#default-layouts
//
// const page = pages[`./pages/${name}.vue`]
// const page = pages[`../pages/${name}.vue`]
// page.default.layout ||= (page) => createElement(Layout, null, page)
// return page
},
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/inertia/install/templates/vue/inertia.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ createInertiaApp({
// and use the following lines.
// see https://inertia-rails.netlify.app/guide/pages#default-layouts
//
// const page = pages[`./pages/${name}.vue`]
// const page = pages[`../pages/${name}.vue`]
// page.default.layout ||= (page) => createElement(Layout, null, page)
// return page
},
Expand Down

0 comments on commit 0c94cab

Please sign in to comment.