Skip to content

Commit

Permalink
feat: (#123) 게시글 작성/수정 페이지에 레이아웃 컴포넌트 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
chsua committed Jul 25, 2023
1 parent 540f6c6 commit 29470c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions frontend/src/pages/post/CreatePost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useEffect } from 'react';

import { useCreatePost } from '@hooks/query/post/useCreatePost';

import Layout from '@components/common/Layout';
import PostForm from '@components/PostForm';

export default function CreatePost() {
Expand All @@ -12,8 +13,8 @@ export default function CreatePost() {
}, []);

return (
<>
<Layout isSidebarVisible={false}>
<PostForm mutate={mutate} isError={isError} error={error} />
</>
</Layout>
);
}
5 changes: 3 additions & 2 deletions frontend/src/pages/post/EditPost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { PostInfo } from '@type/post';

import { useEditPost } from '@hooks/query/post/useEditPost';

import Layout from '@components/common/Layout';
import PostForm from '@components/PostForm';

export default function EditPost() {
Expand Down Expand Up @@ -55,8 +56,8 @@ export default function EditPost() {
};

return (
<>
<Layout isSidebarVisible={false}>
<PostForm data={MOCK_DATA} mutate={mutate} isError={isError} error={error} />
</>
</Layout>
);
}

0 comments on commit 29470c2

Please sign in to comment.