Removed the syncing with firestore
This commit is contained in:
@@ -193,6 +193,19 @@ const EventCard: React.FC<EventCardProps> = ({ event, isBooked, onToggle, onTrac
|
||||
<i className="far fa-calendar-alt w-4 text-[#f97316]"></i>
|
||||
<span>{event.date}{event.schedule?.[0]?.start_time ? ` • ${event.schedule[0].start_time}` : ''}</span>
|
||||
</div>
|
||||
{event.registrationDeadline && (
|
||||
<div className={`flex items-center gap-4 font-black ${admissionStatus === 'DEADLINE_PASSED' ? 'text-rose-600 animate-pulse' : 'text-emerald-600'}`}>
|
||||
<i className="fas fa-clock w-4 text-[#f97316]"></i>
|
||||
<span>
|
||||
{admissionStatus === 'DEADLINE_PASSED' ? 'Deadline Passed' : 'Register Before'}: {new Date(event.registrationDeadline).toLocaleDateString([], {
|
||||
month: 'short',
|
||||
day: '2-digit',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit'
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
{event.durationDays && event.durationDays > 1 && (
|
||||
<div className="flex items-center gap-4">
|
||||
<i className="fas fa-hourglass-half w-4 text-[#f97316]"></i>
|
||||
|
||||
Reference in New Issue
Block a user