Lib: Remove SkeletonData schema and use correct PageData types instead
This commit is contained in:
@ -3,20 +3,6 @@
|
||||
|
||||
// Application Data
|
||||
|
||||
/**
|
||||
* The data returned from the root layout's [load]-function.
|
||||
*/
|
||||
export interface SkeletonData {
|
||||
user: User;
|
||||
admin: boolean;
|
||||
|
||||
graphics: Promise<Graphic[]>;
|
||||
teams: Promise<Team[]>;
|
||||
drivers: Promise<Driver[]>;
|
||||
races: Promise<Race[]>;
|
||||
substitutions: Promise<Substitution[]>;
|
||||
}
|
||||
|
||||
export interface Graphic {
|
||||
name: string;
|
||||
file: string;
|
||||
@ -27,7 +13,7 @@ export interface User {
|
||||
id: string;
|
||||
username: string;
|
||||
firstname: string;
|
||||
avatar: string;
|
||||
avatar?: string;
|
||||
avatar_url?: string;
|
||||
admin: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user