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) => ( -