From e4081b951439dd86d183ab02a75c0a0650cc8310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=80=EC=A7=80?= <103625348+eunji-0623@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:24:11 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=20=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ActivityDetails/ActivityDetails.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ActivityDetails/ActivityDetails.tsx b/components/ActivityDetails/ActivityDetails.tsx index dcbef29..4952994 100644 --- a/components/ActivityDetails/ActivityDetails.tsx +++ b/components/ActivityDetails/ActivityDetails.tsx @@ -28,15 +28,15 @@ 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 useLoginState from '@/hooks/useLoginState'; export default function ActivityDetails({ id }: ActivityDetailsProps) { const router = useRouter(); const [isOpen, setIsOpen] = useState(false); const isDarkMode = useRecoilValue(darkModeState); - const isLogined = useRecoilValue(loginState); + const isLogined = useLoginState(); const [currentPage, setCurrentPage] = useState( router.query.page ? parseInt(router.query.page as string, 10) : 1 ); @@ -207,7 +207,7 @@ export default function ActivityDetails({ id }: ActivityDetailsProps) {
- {isLogined && !isAuthor && ( + {isLogined.isLoggedIn && !isAuthor && (