website refactor
This commit is contained in:
@@ -16,4 +16,5 @@ export interface RulebookScoringConfig {
|
||||
|
||||
export interface LeagueRulebookViewData {
|
||||
scoringConfig: RulebookScoringConfig | null;
|
||||
positionPoints: Array<{ position: number; points: number }>;
|
||||
}
|
||||
|
||||
12
apps/website/lib/view-data/TeamLeaderboardViewData.ts
Normal file
12
apps/website/lib/view-data/TeamLeaderboardViewData.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { TeamSummaryViewModel } from '../view-models/TeamSummaryViewModel';
|
||||
|
||||
export type SkillLevel = 'pro' | 'advanced' | 'intermediate' | 'beginner';
|
||||
export type SortBy = 'rating' | 'wins' | 'winRate' | 'races';
|
||||
|
||||
export interface TeamLeaderboardViewData {
|
||||
teams: TeamSummaryViewModel[];
|
||||
searchQuery: string;
|
||||
filterLevel: SkillLevel | 'all';
|
||||
sortBy: SortBy;
|
||||
filteredAndSortedTeams: TeamSummaryViewModel[];
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
export interface LeagueSponsorshipsViewData {
|
||||
leagueId: string;
|
||||
activeTab: 'overview' | 'editor';
|
||||
onTabChange: (tab: 'overview' | 'editor') => void;
|
||||
league: {
|
||||
id: string;
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user