website refactor
This commit is contained in:
@@ -3,6 +3,17 @@
|
||||
* Contains only raw serializable data, no methods or computed properties
|
||||
*/
|
||||
|
||||
export interface SponsorMetric {
|
||||
icon: any; // React component (lucide-react icon)
|
||||
label: string;
|
||||
value: string | number;
|
||||
color?: string;
|
||||
trend?: {
|
||||
value: number;
|
||||
isPositive: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export interface TeamDetailData {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -32,9 +43,17 @@ export interface TeamMemberData {
|
||||
avatarUrl: string;
|
||||
}
|
||||
|
||||
export interface TeamTab {
|
||||
id: 'overview' | 'roster' | 'standings' | 'admin';
|
||||
label: string;
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
export interface TeamDetailViewData {
|
||||
team: TeamDetailData;
|
||||
memberships: TeamMemberData[];
|
||||
currentDriverId: string;
|
||||
isAdmin: boolean;
|
||||
teamMetrics: SponsorMetric[];
|
||||
tabs: TeamTab[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user