website cleanup
This commit is contained in:
@@ -22,11 +22,11 @@ import {
|
||||
Medal,
|
||||
} from 'lucide-react';
|
||||
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
|
||||
import type { LeagueScoringPresetDTO } from '@/lib/types/generated/LeagueScoringPresetDTO';
|
||||
import type { LeagueScoringPresetViewModel } from '@/lib/view-models/LeagueScoringPresetViewModel';
|
||||
|
||||
interface LeagueReviewSummaryProps {
|
||||
form: LeagueConfigFormModel;
|
||||
presets: LeagueScoringPresetDTO[];
|
||||
presets: LeagueScoringPresetViewModel[];
|
||||
}
|
||||
|
||||
// Individual review card component
|
||||
@@ -108,7 +108,7 @@ export default function LeagueReviewSummary({ form, presets }: LeagueReviewSumma
|
||||
structure.mode === 'solo'
|
||||
? 'Solo drivers'
|
||||
: 'Team-based';
|
||||
|
||||
|
||||
const modeDescription =
|
||||
structure.mode === 'solo'
|
||||
? 'Individual competition'
|
||||
@@ -183,18 +183,18 @@ const stewardingLabel = (() => {
|
||||
};
|
||||
|
||||
// Normalize visibility to new terminology
|
||||
const isRanked = basics.visibility === 'ranked' || basics.visibility === 'public';
|
||||
const isRanked = basics.visibility === 'public'; // public = ranked, private/unlisted = unranked
|
||||
const visibilityLabel = isRanked ? 'Ranked' : 'Unranked';
|
||||
const visibilityDescription = isRanked
|
||||
? 'Competitive • Affects ratings'
|
||||
: 'Casual • Friends only';
|
||||
|
||||
|
||||
// Calculate total weekend duration
|
||||
const totalWeekendMinutes = (timings.practiceMinutes ?? 0) +
|
||||
(timings.qualifyingMinutes ?? 0) +
|
||||
(timings.sprintRaceMinutes ?? 0) +
|
||||
(timings.mainRaceMinutes ?? 0);
|
||||
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* League Summary */}
|
||||
|
||||
Reference in New Issue
Block a user