Skip to content

Commit

Permalink
feat: ✨ use layout on posts page
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 6, 2023
1 parent 7223c72 commit 027a6c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/posts/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Dropzone from "@/components/dropzone";
import Head from "@/components/head";
import Header from "@/components/header";
import Layout from "@/components/layout";
import { useUploadFiles } from "@/hooks/useUploadFiles";
import {
initPocketBaseServer,
Expand Down Expand Up @@ -178,8 +178,7 @@ export default function Post(props: PostProps) {
twitterCard="summary_large_image"
/>

<Box component="main" p="lg">
<Header />
<Layout>
<Group sx={{ justifyContent: "center" }} align="start">
<Stack maw="650px" miw="350px" sx={{ flex: 1, flexGrow: 1 }} px="md">
{userIsAuthor ? (
Expand Down Expand Up @@ -364,7 +363,7 @@ export default function Post(props: PostProps) {
</Paper>
</Stack>
</Group>
</Box>
</Layout>
</>
);
}
Expand Down

0 comments on commit 027a6c9

Please sign in to comment.