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

@@ -1,6 +1,7 @@
'use client';
import type { DriverDTO } from '@/lib/types/generated/DriverDTO';
import type { DriverProfileStatsViewModel } from '@/lib/view-models/DriverProfileViewModel';
import Card from '../ui/Card';
import ProfileHeader from '../profile/ProfileHeader';
import ProfileStats from './ProfileStats';
@@ -15,20 +16,6 @@ interface DriverProfileProps {
isOwnProfile?: boolean;
onEditClick?: () => void;
}
interface DriverProfileStatsViewModel {
rating: number;
wins: number;
podiums: number;
dnfs: number;
totalRaces: number;
avgFinish: number;
bestFinish: number;
worstFinish: number;
consistency: number;
percentile: number;
overallRank?: number;
}
interface DriverTeamViewModel {
team: {

View File

@@ -1,14 +1,14 @@
'use client';
import { useState } from 'react';
import type { DriverDTO } from '@/lib/types/generated/DriverDTO';
import type { DriverProfileDriverSummaryViewModel } from '@/lib/view-models/DriverProfileViewModel';
import Card from '../ui/Card';
import Button from '../ui/Button';
import Input from '../ui/Input';
interface ProfileSettingsProps {
driver: DriverDTO;
onSave?: (updates: Partial<DriverDTO>) => void;
driver: DriverProfileDriverSummaryViewModel;
onSave?: (updates: { bio?: string; country?: string }) => void;
}
export default function ProfileSettings({ driver, onSave }: ProfileSettingsProps) {