page wrapper

This commit is contained in:
2026-01-07 12:40:52 +01:00
parent e589c30bf8
commit 0db80fa98d
128 changed files with 7386 additions and 8096 deletions

View File

@@ -38,6 +38,7 @@ export default function LeagueSchedule({ leagueId }: LeagueScheduleProps) {
const confirmed = window.confirm(`Register for ${race.track ?? race.name}?`);
if (!confirmed) return;
if (!currentDriverId) return;
try {
await registerMutation.mutateAsync({ raceId: race.id, leagueId, driverId: currentDriverId });
@@ -52,6 +53,7 @@ export default function LeagueSchedule({ leagueId }: LeagueScheduleProps) {
const confirmed = window.confirm('Withdraw from this race?');
if (!confirmed) return;
if (!currentDriverId) return;
try {
await withdrawMutation.mutateAsync({ raceId: race.id, driverId: currentDriverId });
@@ -265,4 +267,4 @@ export default function LeagueSchedule({ leagueId }: LeagueScheduleProps) {
}}
</StateContainer>
);
}
}