diff --git a/app/features/calendar/components/TournamentCard.tsx b/app/features/calendar/components/TournamentCard.tsx index 7320910bd..68fb9cb57 100644 --- a/app/features/calendar/components/TournamentCard.tsx +++ b/app/features/calendar/components/TournamentCard.tsx @@ -6,6 +6,7 @@ import { SendouButton } from "~/components/elements/Button"; import { SendouPopover } from "~/components/elements/Popover"; import { Flag } from "~/components/Flag"; import { Image, ModeImage } from "~/components/Image"; +import { LocaleTime } from "~/components/LocaleTime"; import { TierPill } from "~/components/TierPill"; import { BadgeDisplay } from "~/features/badges/components/BadgeDisplay"; import { useFormatDistanceToNow } from "~/hooks/intl/useFormatDistanceToNow"; @@ -20,9 +21,11 @@ import styles from "./TournamentCard.module.css"; export function TournamentCard({ tournament, className, + timeFormat = "relative", }: { tournament: CalendarEvent | ShowcaseCalendarEvent; className?: string; + timeFormat?: "relative" | "absolute"; }) { const isHydrated = useHydrated(); const formatDistanceToNow = useFormatDistanceToNow(); @@ -84,16 +87,30 @@ export function TournamentCard({ ) : null} {startDate ? ( - + timeFormat === "absolute" ? ( + + ) : ( + + ) ) : null} {isCalendar ? (
diff --git a/app/features/front-page/routes/index.tsx b/app/features/front-page/routes/index.tsx index 646df1023..a4e83bcbc 100644 --- a/app/features/front-page/routes/index.tsx +++ b/app/features/front-page/routes/index.tsx @@ -164,7 +164,11 @@ function TournamentShowcase() {
{data.tournaments.showcase.map((tournament) => ( - + ))}