From f6dd1f9ac5ece90afdc3a1d2e1652dd8e41bbb96 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 30 May 2026 10:09:23 +0300 Subject: [PATCH] Progress --- app/components/TimePopover.tsx | 10 +++++----- app/components/match-page/MatchBannerScheduledTime.tsx | 2 +- app/features/scrims/components/ScrimCard.tsx | 2 +- .../tournament/components/TournamentHeader.tsx | 5 ++--- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/components/TimePopover.tsx b/app/components/TimePopover.tsx index 4e2b7d855..7dd3cfc28 100644 --- a/app/components/TimePopover.tsx +++ b/app/components/TimePopover.tsx @@ -11,7 +11,7 @@ import { LocaleTime } from "./LocaleTime"; import styles from "./TimePopover.module.css"; export default function TimePopover({ - time, + date, options = { minute: "numeric", hour: "numeric", @@ -22,7 +22,7 @@ export default function TimePopover({ className, footerText, }: { - time: Date; + date: Date; options?: Intl.DateTimeFormatOptions; underline?: boolean; className?: string; @@ -61,7 +61,7 @@ export default function TimePopover({ setOpen(true); }} > - + copyToClipboard(``)} + onPress={() => copyToClipboard(``)} icon={copySuccess ? : } > {t("common:actions.copyTimestampForDiscord")} diff --git a/app/components/match-page/MatchBannerScheduledTime.tsx b/app/components/match-page/MatchBannerScheduledTime.tsx index 7df2e56c1..4f9f6e7fe 100644 --- a/app/components/match-page/MatchBannerScheduledTime.tsx +++ b/app/components/match-page/MatchBannerScheduledTime.tsx @@ -9,7 +9,7 @@ export function MatchBannerScheduledTime({ }: MatchBannerScheduledTimeProps) { return ( date.getTime(), ); - // xxx: for dates use the popover version return ( @@ -56,7 +55,7 @@ export function TournamentHeader({ tournament }: { tournament: Tournament }) { {startTimes.map((date) => ( -