website refactor
This commit is contained in:
16
apps/website/templates/view-data/ProfileLeaguesViewData.ts
Normal file
16
apps/website/templates/view-data/ProfileLeaguesViewData.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* ViewData for Profile Leagues page
|
||||
* Pure, JSON-serializable data structure for Template rendering
|
||||
*/
|
||||
|
||||
export interface ProfileLeaguesLeagueViewData {
|
||||
leagueId: string;
|
||||
name: string;
|
||||
description: string;
|
||||
membershipRole: 'owner' | 'admin' | 'steward' | 'member';
|
||||
}
|
||||
|
||||
export interface ProfileLeaguesViewData {
|
||||
ownedLeagues: ProfileLeaguesLeagueViewData[];
|
||||
memberLeagues: ProfileLeaguesLeagueViewData[];
|
||||
}
|
||||
Reference in New Issue
Block a user