From 20964f41108bd523aeaedd5f5a5145aefacc58a0 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Wed, 30 Sep 2026 18:30:23 +0330 Subject: [PATCH] fix: highlight open event registration action --- src/components/events/EventCard.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/events/EventCard.tsx b/src/components/events/EventCard.tsx index fc19f29..e89e860 100644 --- a/src/components/events/EventCard.tsx +++ b/src/components/events/EventCard.tsx @@ -7,7 +7,6 @@ import { Link } from "@/lib/router"; import type { EventListItemSchema } from "@/lib/types"; import { formatJalali, formatNumberPersian, formatToman, getEventCardImageUrl } from "@/lib/utils"; import { - getEventCardState, getEventBrowseLabel, getEventRegistrationMessage, getEventRegistrationState, @@ -20,8 +19,6 @@ export function EventCard({ event, now }: { event: EventListItemSchema; now: num const registration = getEventRegistrationState(event, now); const registrationText = getEventRegistrationMessage(event, now); const canRegister = registration.state === "open"; - const isPast = getEventCardState(event, now) === "past"; - const isComingSoon = statusLabel === "به‌زودی"; const imageEffect = canRegister ? "" : "scale-[1.02] blur-sm group-hover:scale-100 group-hover:blur-none group-active:scale-100 group-active:blur-none group-focus-visible:scale-100 group-focus-visible:blur-none"; @@ -87,7 +84,7 @@ export function EventCard({ event, now }: { event: EventListItemSchema; now: num
- + {canRegister ? "ثبت‌نام در رویداد" : "مشاهده جزئیات رویداد"}