From 44e6f3658c34c7828e9048146d52b083fe2e4a36 Mon Sep 17 00:00:00 2001 From: Park Sumin Date: Thu, 1 Aug 2024 18:48:58 +0900 Subject: [PATCH 1/4] =?UTF-8?q?Fix:=20null=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActivityDetails/ActivityDetails.tsx | 36 +++++++------------ 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/components/ActivityDetails/ActivityDetails.tsx b/components/ActivityDetails/ActivityDetails.tsx index dcbef29..d242e77 100644 --- a/components/ActivityDetails/ActivityDetails.tsx +++ b/components/ActivityDetails/ActivityDetails.tsx @@ -26,17 +26,15 @@ import { ActivityDetailsPageMeta } from '../MetaData/MetaData'; import useDeleteActivity from '@/hooks/myActivity/useDeleteActivity'; import { usePopup } from '@/hooks/usePopup'; import { darkModeState } from '@/states/themeState'; -import SendChat from '../Chat/SendChat'; import { ShareButton } from '../ShareButton/ShareButton'; -import { loginState } from '@/states/loginState'; import { ViewedActivitiesState } from '@/states/ViewedState'; import { ViewedActivityProps } from '../ViewedActivities/ViewedActivities.type'; +import profileThumbnail from '@/public/image/profile-circle-icon-512x512-zxne30hp.png'; export default function ActivityDetails({ id }: ActivityDetailsProps) { const router = useRouter(); const [isOpen, setIsOpen] = useState(false); const isDarkMode = useRecoilValue(darkModeState); - const isLogined = useRecoilValue(loginState); const [currentPage, setCurrentPage] = useState( router.query.page ? parseInt(router.query.page as string, 10) : 1 ); @@ -205,24 +203,14 @@ export default function ActivityDetails({ id }: ActivityDetailsProps) { -
-
- {isLogined && !isAuthor && ( - - )} - -
+
+ {isAuthor && (
@@ -256,7 +244,7 @@ export default function ActivityDetails({ id }: ActivityDetailsProps) { /> )}
-
+

@@ -306,7 +294,9 @@ export default function ActivityDetails({ id }: ActivityDetailsProps) { >

{`${review.user.nickname}의 Date: Thu, 1 Aug 2024 23:22:46 +0900 Subject: [PATCH 2/4] =?UTF-8?q?Style:=20=EB=A6=AC=ED=8C=A9=ED=86=A0?= =?UTF-8?q?=EB=A7=81=20=EB=B0=8F=20=EB=B0=A9=EB=AC=B8=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20=EB=8B=A4=ED=81=AC=EB=AA=A8=EB=93=9C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CatergoryBtn/CatergoryBtn.tsx | 2 +- components/Lander/AllActivities.tsx | 2 +- components/PriceFilterBtn/PriceFilterBtn.tsx | 4 ++-- .../ViewedActivities/ViewedActivities.tsx | 18 +++++++++++------- components/ViewedActivities/ViewedActivity.tsx | 2 +- public/icon/History_black.svg | 1 + public/icon/History_white.svg | 1 + public/icon/close_black.svg | 1 + public/icon/close_white.svg | 1 + states/mainPageState.tsx | 2 +- 10 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 public/icon/History_black.svg create mode 100644 public/icon/History_white.svg create mode 100644 public/icon/close_black.svg create mode 100644 public/icon/close_white.svg diff --git a/components/CatergoryBtn/CatergoryBtn.tsx b/components/CatergoryBtn/CatergoryBtn.tsx index 8ba2aa2..c3430d0 100644 --- a/components/CatergoryBtn/CatergoryBtn.tsx +++ b/components/CatergoryBtn/CatergoryBtn.tsx @@ -37,7 +37,7 @@ export default function CatergoryBtn({ categoryName }: CategoryBtnProps) { return (