Skip to content

Commit

Permalink
Fix: 로그인 확인 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunji-0623 committed Aug 5, 2024
1 parent 8cee3a8 commit e4081b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ActivityDetails/ActivityDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<number>(
router.query.page ? parseInt(router.query.page as string, 10) : 1
);
Expand Down Expand Up @@ -207,7 +207,7 @@ export default function ActivityDetails({ id }: ActivityDetailsProps) {
</div>
<div className="flex items-center t:items-center m:items-center">
<div className="flex gap-[12px]">
{isLogined && !isAuthor && (
{isLogined.isLoggedIn && !isAuthor && (
<SendChat
receiver={Number(activityData?.userId)}
activityId={Number(activityData?.id)}
Expand Down

0 comments on commit e4081b9

Please sign in to comment.