website cleanup
This commit is contained in:
@@ -90,7 +90,7 @@ export interface DriverProfileExtendedProfileViewModel {
|
||||
openToRequests: boolean;
|
||||
}
|
||||
|
||||
export interface DriverProfileViewModel {
|
||||
export interface DriverProfileViewModelData {
|
||||
currentDriver: DriverProfileDriverSummaryViewModel | null;
|
||||
stats: DriverProfileStatsViewModel | null;
|
||||
finishDistribution: DriverProfileFinishDistributionViewModel | null;
|
||||
@@ -106,7 +106,7 @@ export interface DriverProfileViewModel {
|
||||
* Transforms API DTOs into UI-ready data structures.
|
||||
*/
|
||||
export class DriverProfileViewModel {
|
||||
constructor(private readonly dto: DriverProfileViewModel) {}
|
||||
constructor(private readonly dto: DriverProfileViewModelData) {}
|
||||
|
||||
get currentDriver(): DriverProfileDriverSummaryViewModel | null {
|
||||
return this.dto.currentDriver;
|
||||
@@ -135,7 +135,7 @@ export class DriverProfileViewModel {
|
||||
/**
|
||||
* Get the raw DTO for serialization or further processing
|
||||
*/
|
||||
toDTO(): DriverProfileViewModel {
|
||||
toDTO(): DriverProfileViewModelData {
|
||||
return this.dto;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user