remove core from pages
This commit is contained in:
13
apps/website/lib/view-models/ProtestDriverViewModel.ts
Normal file
13
apps/website/lib/view-models/ProtestDriverViewModel.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DriverSummaryDTO } from '../types/generated/LeagueAdminProtestsDTO';
|
||||
|
||||
export class ProtestDriverViewModel {
|
||||
constructor(private readonly dto: DriverSummaryDTO) {}
|
||||
|
||||
get id(): string {
|
||||
return this.dto.id;
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return this.dto.name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user