Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/league/sections/upcoming-events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const formatDateEvent = ({
hour12: true
}

const formattedDate = date.toLocaleDateString('es-ES', optionsDate)
const formattedInitialHour = start_hour.toLocaleTimeString('es-ES', optionsHour)
const formattedFinalHour = final_hour.toLocaleTimeString('es-ES', optionsHour)
const formattedDate = new Date(date).toLocaleDateString('es-ES', optionsDate)
const formattedInitialHour = new Date(start_hour).toLocaleTimeString('es-ES', optionsHour)
const formattedFinalHour = new Date(final_hour).toLocaleTimeString('es-ES', optionsHour)

return `${formattedDate}, de ${formattedInitialHour} a ${formattedFinalHour}`
}
Expand All @@ -43,7 +43,7 @@ export function UpcomingEvents({

const NoEventsCard: ReactNode = <EventCard.Container key="unique" className="h-full justify-end w-[30rem]">
<div className="flex w-full aspect-video">
<EventCard.Image src={"/Logo_Oscuro.png"} className="!object-contain opacity-15 w-1/2 m-auto" />
<EventCard.Image src={"/Logo_Oscuro.png"} className="!object-contain opacity-15 !w-2/3 m-auto" />
</div>

<EventCard.Padding>
Expand Down Expand Up @@ -76,7 +76,7 @@ export function UpcomingEvents({
return {
comp: <EventCard.Container key={event._id} className="h-full justify-end !w-[20rem] xl:!w-[30rem]">
{event.picture ? <EventCard.Image src={event.picture.link} /> : <div className="flex w-full aspect-video">
<EventCard.Image src={"/Logo_Oscuro.png"} className="!object-contain opacity-15 w-1/2 m-auto" />
<EventCard.Image src={"/Logo_Oscuro.png"} className="!object-contain opacity-15 !w-2/3 m-auto" />
</div>}

<EventCard.Padding>
Expand Down