diff --git a/app/components/league/settings/DraftSetupSection.tsx b/app/components/league/settings/DraftSetupSection.tsx index eeaec80..1eb2c0b 100644 --- a/app/components/league/settings/DraftSetupSection.tsx +++ b/app/components/league/settings/DraftSetupSection.tsx @@ -1,3 +1,4 @@ +import { useState, useEffect } from "react"; import { Swords, CalendarIcon } from "lucide-react"; import { format } from "date-fns"; import { Label } from "~/components/ui/label"; @@ -64,6 +65,11 @@ export function DraftSetupSection({ onOvernightTimezoneChange: (v: string) => void; commishTimezone: string | null; }) { + const [localTz, setLocalTz] = useState(""); + useEffect(() => { + setLocalTz(Intl.DateTimeFormat().resolvedOptions().timeZone); + }, []); + return (

Set this before starting the draft room. + {localTz && <> Times are in your local timezone ({localTz}).}

diff --git a/app/components/league/settings/SportsSection.tsx b/app/components/league/settings/SportsSection.tsx index 5c8de02..983d35a 100644 --- a/app/components/league/settings/SportsSection.tsx +++ b/app/components/league/settings/SportsSection.tsx @@ -75,9 +75,8 @@ export function SportsSection({ - {ss.sport.slug === BRACKT_SLUG ? "Brackt" : `${ss.sport.name} - ${ss.name} (${ss.year})`} + {ss.sport.slug === BRACKT_SLUG ? "Brackt" : ss.name} - {ss.scoringType.replace("_", " ")} ); diff --git a/app/routes/leagues/new.tsx b/app/routes/leagues/new.tsx index 801427e..ed64ea3 100644 --- a/app/routes/leagues/new.tsx +++ b/app/routes/leagues/new.tsx @@ -533,7 +533,7 @@ function Step2Sports({ className="inline-flex items-center gap-1 pl-2 pr-1 py-0.5 rounded-md bg-primary/10 border border-primary text-primary text-sm font-medium" > - {s.sport.name} {s.year} + {s.name}