website refactor
This commit is contained in:
@@ -11,6 +11,7 @@ export interface RosterMemberData {
|
||||
};
|
||||
role: string;
|
||||
joinedAt: string;
|
||||
formattedJoinedAt: string;
|
||||
}
|
||||
|
||||
export interface JoinRequestData {
|
||||
@@ -20,6 +21,7 @@ export interface JoinRequestData {
|
||||
name: string;
|
||||
};
|
||||
requestedAt: string;
|
||||
formattedRequestedAt: string;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ export interface SponsorDashboardViewData {
|
||||
exposureChange: number;
|
||||
};
|
||||
categoryData: {
|
||||
leagues: { count: number; impressions: number };
|
||||
teams: { count: number; impressions: number };
|
||||
drivers: { count: number; impressions: number };
|
||||
races: { count: number; impressions: number };
|
||||
platform: { count: number; impressions: number };
|
||||
leagues: { count: number; countLabel: string; impressions: number; impressionsLabel: string };
|
||||
teams: { count: number; countLabel: string; impressions: number; impressionsLabel: string };
|
||||
drivers: { count: number; countLabel: string; impressions: number; impressionsLabel: string };
|
||||
races: { count: number; countLabel: string; impressions: number; impressionsLabel: string };
|
||||
platform: { count: number; countLabel: string; impressions: number; impressionsLabel: string };
|
||||
};
|
||||
sponsorships: Record<string, unknown>; // From DTO
|
||||
activeSponsorships: number;
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
export interface SponsorMetric {
|
||||
icon: string; // Icon name (e.g. 'users', 'zap', 'calendar')
|
||||
label: string;
|
||||
value: string | number;
|
||||
value: string;
|
||||
color?: string;
|
||||
trend?: {
|
||||
value: number;
|
||||
value: string;
|
||||
isPositive: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,6 +11,9 @@ export interface TeamSummaryData {
|
||||
leagueName: string;
|
||||
memberCount: number;
|
||||
logoUrl?: string;
|
||||
ratingLabel: string;
|
||||
winsLabel: string;
|
||||
racesLabel: string;
|
||||
}
|
||||
|
||||
export interface TeamsViewData extends ViewData {
|
||||
|
||||
@@ -26,6 +26,8 @@ export interface LeagueSponsorshipsViewData {
|
||||
sponsorId: string;
|
||||
sponsorName: string;
|
||||
requestedAt: string;
|
||||
formattedRequestedAt: string;
|
||||
status: 'pending' | 'approved' | 'rejected';
|
||||
statusLabel: string;
|
||||
}>;
|
||||
}
|
||||
Reference in New Issue
Block a user