diff --git a/components/Link/LinkCard.tsx b/components/Link/LinkCard.tsx index e5d7cbd..48a148a 100644 --- a/components/Link/LinkCard.tsx +++ b/components/Link/LinkCard.tsx @@ -31,7 +31,7 @@ const LinkCard = ({ info }: LinkCardProps) => { const createdTime = timeAgo(info.createdAt); const router = useRouter(); - const isFavoritePage = router.pathname === "/favorite"; + const onlyLinkPage = router.pathname === "/link"; const dropdownRef = useRef(null); // 모달이 열릴 때 드롭다운 닫기 @@ -98,7 +98,7 @@ const LinkCard = ({ info }: LinkCardProps) => { fill /> {/* 즐겨찾기 페이지가 아닐 때에는 즐겨찾기 버튼 렌더링x */} - {!isFavoritePage && ( + {onlyLinkPage && (
{ {createdTime || "1일 전"} {/* isFavoritePage일 때만 케밥 버튼 렌더링 */} - {!isFavoritePage && ( + {onlyLinkPage && (