From 14d69dd44d445f41854ff8ad08764d54c25ee412 Mon Sep 17 00:00:00 2001 From: Jinhyun Park Date: Fri, 18 Mar 2022 18:47:38 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=EC=BF=BC=EB=A6=AC=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EB=A7=81=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20close=20#564?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/CommentPreview/CommentPreview.tsx | 2 +- client/src/components/Menubar/Menubar.tsx | 2 +- client/src/components/Notificationbar/Notification.tsx | 2 +- client/src/components/Postpreview/Postpreview.tsx | 2 +- client/src/pages/Main/Main.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/components/CommentPreview/CommentPreview.tsx b/client/src/components/CommentPreview/CommentPreview.tsx index a653a6b..77a5076 100644 --- a/client/src/components/CommentPreview/CommentPreview.tsx +++ b/client/src/components/CommentPreview/CommentPreview.tsx @@ -33,7 +33,7 @@ function CommentPreview({ commentData }: GreetingProps) { return ( <> navigate(`/detail?=postId=${postId}`)} + onClick={() => navigate(`/detail?postId=${postId}`)} > {isMobile ? ( diff --git a/client/src/components/Menubar/Menubar.tsx b/client/src/components/Menubar/Menubar.tsx index f3bcdeb..912faf8 100644 --- a/client/src/components/Menubar/Menubar.tsx +++ b/client/src/components/Menubar/Menubar.tsx @@ -95,7 +95,7 @@ export default function Menubar({ menubarHandler }: GreetingProps) { return ( !el.isDel && (isLoggedIn ? ( - +
{' '} {stringLimit(el.name, 10)} diff --git a/client/src/components/Notificationbar/Notification.tsx b/client/src/components/Notificationbar/Notification.tsx index 4aad90a..0908be3 100644 --- a/client/src/components/Notificationbar/Notification.tsx +++ b/client/src/components/Notificationbar/Notification.tsx @@ -44,7 +44,7 @@ export default function Notification({ notificationDetail }: GreetingProps) { { onSuccess: () => { queryClient.invalidateQueries(['notification_key']); - window.location.href = `/detail?=postId=${postId}`; + window.location.href = `/detail?postId=${postId}`; }, onError: (err) => { console.log(err); diff --git a/client/src/components/Postpreview/Postpreview.tsx b/client/src/components/Postpreview/Postpreview.tsx index f3fea9b..55f261e 100644 --- a/client/src/components/Postpreview/Postpreview.tsx +++ b/client/src/components/Postpreview/Postpreview.tsx @@ -31,7 +31,7 @@ function PostPreview({ postData }: GreetingProps) { return ( <> - + {isNotice ? 공지 :
{viewId}
}
diff --git a/client/src/pages/Main/Main.tsx b/client/src/pages/Main/Main.tsx index 1356aef..38bff54 100644 --- a/client/src/pages/Main/Main.tsx +++ b/client/src/pages/Main/Main.tsx @@ -117,7 +117,7 @@ export default function Main() { !el.isDel && (isLoggedIn ? ( - +
{stringLimit(el.name, 7)}