mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-08 04:05:54 -05:00
@@ -27,7 +27,7 @@ export default function TimePopover({
|
||||
className?: string;
|
||||
footerText?: string;
|
||||
}) {
|
||||
const { formatDateTime, formatTime } = useTimeFormat();
|
||||
const { formatDateTimeSmartMinutes, formatTime } = useTimeFormat();
|
||||
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
@@ -61,7 +61,7 @@ export default function TimePopover({
|
||||
setOpen(true);
|
||||
}}
|
||||
>
|
||||
{formatDateTime(time, options)}
|
||||
{formatDateTimeSmartMinutes(time, options)}
|
||||
</button>
|
||||
<Popover
|
||||
isOpen={open}
|
||||
|
||||
@@ -73,8 +73,6 @@ export default function TournamentRegisterPage() {
|
||||
const isMounted = useIsMounted();
|
||||
const tournament = useTournament();
|
||||
|
||||
const startsAtEvenHour = tournament.ctx.startTime.getMinutes() === 0;
|
||||
|
||||
return (
|
||||
<div className={clsx("stack lg", containerClassName("normal"))}>
|
||||
<div className="tournament__logo-container">
|
||||
@@ -120,7 +118,7 @@ export default function TournamentRegisterPage() {
|
||||
<TimePopover
|
||||
time={tournament.ctx.startTime}
|
||||
options={{
|
||||
minute: startsAtEvenHour ? undefined : "numeric",
|
||||
minute: "numeric",
|
||||
hour: "numeric",
|
||||
day: "numeric",
|
||||
month: "long",
|
||||
|
||||
Reference in New Issue
Block a user