From 49bd064e248609dcaa601b38c62b4084b1b9cbf7 Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Thu, 21 Jul 2022 18:52:57 +0900 Subject: [PATCH] =?UTF-8?q?[=20=20chore=20=20]=20=EB=8B=A8=EC=88=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/community/ContentCard.tsx | 4 ++-- components/community/ReplyList.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/community/ContentCard.tsx b/components/community/ContentCard.tsx index 3fb8adb..cf94da1 100644 --- a/components/community/ContentCard.tsx +++ b/components/community/ContentCard.tsx @@ -12,7 +12,7 @@ interface ContentInfoProps { content: string; userNickname?: string; replyCount?: number; - createdAt?: string; + createdAt: string; img?: string; } @@ -41,7 +41,7 @@ export default function ContentCard(props: ContentInfoProps) { {userNickname} - {createdAt} + {createdAt.split('T')[0]} diff --git a/components/community/ReplyList.tsx b/components/community/ReplyList.tsx index 756ba5f..1cf979a 100644 --- a/components/community/ReplyList.tsx +++ b/components/community/ReplyList.tsx @@ -45,7 +45,7 @@ export default function ReplyList(props: ReplyListProps) { const data = await postReply(newReplyInfo); setNewReplyInfo({ - boardId: `${cid}`, + boardId: cid, content: replyText, }); router.push(`/community/${data.id}`);