-
크루가 처음이신가요?
+
크루크루가 처음이신가요?
0 && timeDifference <= 24 * 60 * 60 * 1000;
+ // 오늘 이낸지 확인
+ const isToday = gatheringDate.toDateString() === today.toDateString();
// 마감 시간 문자열 생성
const deadlineMessage = `오늘 ${gatheringDate.getHours()}시 마감`;
@@ -87,7 +86,7 @@ export default function GatheringCard({
id={id}
isPast={isPast}
deadlineMessage={deadlineMessage}
- isWithin24Hours={isWithin24Hours}
+ isToday={isToday}
title={title}
dateTime={dateTime}
location={location}
diff --git a/src/components/common/gathering-card/presenter.tsx b/src/components/common/gathering-card/presenter.tsx
index 5f28e851..75631115 100644
--- a/src/components/common/gathering-card/presenter.tsx
+++ b/src/components/common/gathering-card/presenter.tsx
@@ -19,7 +19,7 @@ export interface GatheringCardPresenterProps {
onLikeToggle: () => void;
onClick: () => void;
isPast: boolean;
- isWithin24Hours?: boolean;
+ isToday?: boolean;
deadlineMessage?: string;
className?: string;
}
@@ -36,7 +36,7 @@ export default function GatheringCardPresenter({
onLikeToggle,
onClick,
isPast,
- isWithin24Hours,
+ isToday,
deadlineMessage,
className,
}: GatheringCardPresenterProps) {
@@ -64,7 +64,7 @@ export default function GatheringCardPresenter({
/>