From c80edfe2cd39a59f451062291cfd02ef411428bb Mon Sep 17 00:00:00 2001 From: tare <59001439+junghwa1996@users.noreply.github.com> Date: Sat, 28 Dec 2024 18:06:34 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=92=84=20=EB=AA=A8=EB=B0=94=EC=9D=BC?= =?UTF-8?q?=20=EC=BD=94=EB=A9=98=ED=8A=B8=20=EC=88=98=EC=A0=95=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20=ED=81=B4=EB=A6=AD=20=EC=8B=9C=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=20=EA=B2=B9=EC=B9=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/boards.page/CommentForm.tsx | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/components/boards.page/CommentForm.tsx b/components/boards.page/CommentForm.tsx index 61336e28..a8e9697e 100644 --- a/components/boards.page/CommentForm.tsx +++ b/components/boards.page/CommentForm.tsx @@ -1,6 +1,7 @@ import React from 'react'; import Button from '@/components/Button'; +import useCheckMobile from '@/hooks/useCheckMobile'; interface CommentFormProps { value: string; @@ -32,6 +33,8 @@ export default function CommentForm({ onChange(e); }; + const isMobile = useCheckMobile(); + return (
- + {length} / {MAX_LENGTH} -
+
{update && ( - )} -
From 6949ca73a3370dfe10feb3eab0c676beb8264767 Mon Sep 17 00:00:00 2001 From: tare <59001439+junghwa1996@users.noreply.github.com> Date: Sat, 28 Dec 2024 19:00:35 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=84=20=EC=A0=84=EC=B2=B4=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=EA=B8=80,=20=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EB=94=94=ED=85=8C?= =?UTF-8?q?=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Pagination/PaginationButton.tsx | 2 +- components/boards.page/BoardCard.tsx | 2 +- components/boards.page/BoardDetailCard.tsx | 2 +- components/boards.page/ButtonIcon.tsx | 4 ++-- components/boards.page/Comment.tsx | 6 +++--- components/boards.page/CommentForm.tsx | 6 +++--- pages/boards/[articleId].tsx | 2 +- pages/boards/index.tsx | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/components/Pagination/PaginationButton.tsx b/components/Pagination/PaginationButton.tsx index ee2cd11a..45706386 100644 --- a/components/Pagination/PaginationButton.tsx +++ b/components/Pagination/PaginationButton.tsx @@ -22,7 +22,7 @@ export default function PaginationButton({ }: PaginationButtonProps) { return (
-
- {name} +
+ {name} {!isEditing && isOwner && ( -
+