diff --git a/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.jsx b/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.jsx index 4995867..540704e 100644 --- a/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.jsx +++ b/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.jsx @@ -1,11 +1,10 @@ -import BackIcon from '/src/assets/icons/back.svg?react'; -import { Link } from 'react-router-dom'; import styles from './FreeboardDetail.module.css'; import FreeboardCommentInput from './FreeDetailComments/FreeboardCommentInput'; import FreeboardComment from './FreeDetailComments/FreeboardComment'; import { useComments } from '../../../hooks/api/useComments'; import { useCommentWrite } from '../../../hooks/api/useCommentWrite'; import { useParams } from 'react-router-dom'; +import ArticleDetail from '../ArticleDetail/ArticleDetail'; export default function FreeboardDetail({ topic, title, author, content, onDelete, isMine }) { const { freeboardId } = useParams(); @@ -20,43 +19,15 @@ export default function FreeboardDetail({ topic, title, author, content, onDelet return (
-
-
- - - {topic} - -
-

{title}

- {author && {author}} -
-
- {isMine && ( -
- - 수정 - - -
- )} -
-
-

{content}

-
- + {comments && (
{comments.map((comment) => ( diff --git a/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.module.css b/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.module.css index 5391d53..54078e5 100644 --- a/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.module.css +++ b/frontend/src/components/Article/FreeboardDetail/FreeboardDetail.module.css @@ -9,7 +9,7 @@ margin: 0; padding: 0; } - +/* .header { display: flex; justify-content: space-between; @@ -113,7 +113,7 @@ .delete { color: var(--error-color); -} +} */ .commentWrapper { display: flex;