Skip to content

Commit

Permalink
fix: pages with new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelines committed Jun 19, 2023
1 parent 71eb745 commit de71471
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/website/src/pages/blog/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const BlogDetailPage: Page = () => {
)
}

BlogDetailPage.getLayout = AppLayout
BlogDetailPage.getLayout = function getLayout(page) {
return <AppLayout>{page}</AppLayout>
}

export default BlogDetailPage
4 changes: 3 additions & 1 deletion apps/website/src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const PostCard = () => {
)
}

BlogPage.getLayout = AppLayout
BlogPage.getLayout = function getLayout(page) {
return <AppLayout>{page}</AppLayout>
}

export default BlogPage
4 changes: 3 additions & 1 deletion apps/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ const FeatureGrid = () => {
)
}

HomePage.getLayout = AppLayout
HomePage.getLayout = function getLayout(page) {
return <AppLayout>{page}</AppLayout>
}

export default HomePage

0 comments on commit de71471

Please sign in to comment.