Skip to content

Commit

Permalink
chore: home layout.tsx 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bae-sh committed Jan 14, 2024
1 parent 69800f3 commit eed561b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 71 deletions.
6 changes: 5 additions & 1 deletion client/src/app/(home)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ export default function LayoutComponent({
}: {
children: React.ReactNode;
}) {
return <Layout>{children}</Layout>;
return (
<Layout>
<div className="flex justify-between max-w-5xl mx-auto">{children}</div>
</Layout>
);
}
4 changes: 2 additions & 2 deletions client/src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export default async function Home() {
const data = await getAllPosts({});

return (
<div className="flex justify-between max-w-5xl mx-auto">
<>
<div className="flex flex-col w-full gap-3 md:w-8/12">
<WritePostButton />
<Suspense fallback={<Loading />}>
<PostsBox initialData={data} />
</Suspense>
</div>
<Advertisement />
</div>
</>
);
}
68 changes: 0 additions & 68 deletions client/src/components/ErrorFallback/index.stories.ts

This file was deleted.

0 comments on commit eed561b

Please sign in to comment.