website cleanup

This commit is contained in:
2025-12-24 14:01:52 +01:00
parent a7aee42409
commit 9b683a59d3
65 changed files with 880 additions and 745 deletions

View File

@@ -21,8 +21,8 @@ import {
Globe,
Medal,
} from 'lucide-react';
import type { LeagueConfigFormModel } from '@core/racing/application';
import type { LeagueScoringPresetDTO } from '@core/racing/application/ports/LeagueScoringPresetProvider';
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
import type { LeagueScoringPresetDTO } from '@/lib/types/generated/LeagueScoringPresetDTO';
interface LeagueReviewSummaryProps {
form: LeagueConfigFormModel;

View File

@@ -1,11 +1,15 @@
'use client';
import { Calendar, Users, Trophy, Gamepad2, Eye, Hash, Award } from 'lucide-react';
import type { LeagueConfigFormModel } from '@core/racing/application';
import type { League } from '@core/racing/domain/entities/League';
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
interface ReadonlyLeagueInfoProps {
league: League;
league: {
id: string;
name: string;
ownerId: string;
createdAt?: string;
};
configForm: LeagueConfigFormModel;
}
@@ -46,11 +50,11 @@ export function ReadonlyLeagueInfo({ league, configForm }: ReadonlyLeagueInfoPro
{
icon: Calendar,
label: 'Created',
value: new Date(league.createdAt).toLocaleDateString('en-US', {
value: league.createdAt ? new Date(league.createdAt).toLocaleDateString('en-US', {
month: 'short',
day: 'numeric',
year: 'numeric',
}),
}) : '—',
},
{
icon: Trophy,