view data fixes
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
/**
|
||||
* TeamDetailViewData - Pure ViewData for TeamDetailTemplate
|
||||
* Contains only raw serializable data, no methods or computed properties
|
||||
*/
|
||||
|
||||
import { ViewData } from "../contracts/view-data/ViewData";
|
||||
|
||||
export interface SponsorMetric {
|
||||
@@ -27,13 +22,9 @@ export interface TeamDetailData {
|
||||
foundedDateLabel?: string;
|
||||
specialization?: string;
|
||||
region?: string;
|
||||
languages?: string[];
|
||||
languages?: string[] | null;
|
||||
category?: string;
|
||||
membership?: {
|
||||
role: string;
|
||||
joinedAt: string;
|
||||
isActive: boolean;
|
||||
} | null;
|
||||
membership?: string | null;
|
||||
canManage: boolean;
|
||||
}
|
||||
|
||||
@@ -44,7 +35,7 @@ export interface TeamMemberData {
|
||||
joinedAt: string;
|
||||
joinedAtLabel: string;
|
||||
isActive: boolean;
|
||||
avatarUrl: string;
|
||||
avatarUrl: string | null;
|
||||
}
|
||||
|
||||
export interface TeamTab {
|
||||
@@ -57,7 +48,7 @@ export interface TeamTab {
|
||||
export interface TeamDetailViewData extends ViewData {
|
||||
team: TeamDetailData;
|
||||
memberships: TeamMemberData[];
|
||||
currentDriverId: string;
|
||||
currentDriverId: string | null;
|
||||
isAdmin: boolean;
|
||||
teamMetrics: SponsorMetric[];
|
||||
tabs: TeamTab[];
|
||||
|
||||
Reference in New Issue
Block a user