diff --git a/src/lib/components/cards/DriverCard.svelte b/src/lib/components/cards/DriverCard.svelte index a4f90ef..f6b2898 100644 --- a/src/lib/components/cards/DriverCard.svelte +++ b/src/lib/components/cards/DriverCard.svelte @@ -9,7 +9,7 @@ type ToastStore, } from "@skeletonlabs/skeleton"; import { Button, Input, Card, Dropdown } from "$lib/components"; - import type { Driver, SkeletonData } from "$lib/schema"; + import type { Driver } from "$lib/schema"; import { DRIVER_HEADSHOT_HEIGHT, DRIVER_HEADSHOT_WIDTH } from "$lib/config"; import { team_dropdown_options } from "$lib/dropdown"; import { get_driver_headshot_template } from "$lib/database"; @@ -17,10 +17,11 @@ import { pb } from "$lib/pocketbase"; import { invalidateAll } from "$app/navigation"; import { error } from "@sveltejs/kit"; + import type { PageData } from "../../../routes/data/season/drivers/$types"; interface DriverCardProps { /** Data passed from the page context */ - data: SkeletonData; + data: PageData; /** The [Driver] object used to prefill values. */ driver?: Driver; diff --git a/src/lib/components/cards/RaceCard.svelte b/src/lib/components/cards/RaceCard.svelte index 14cb64b..bd4d1c6 100644 --- a/src/lib/components/cards/RaceCard.svelte +++ b/src/lib/components/cards/RaceCard.svelte @@ -8,7 +8,7 @@ type ToastStore, } from "@skeletonlabs/skeleton"; import { Button, Card, Input } from "$lib/components"; - import type { Race, SkeletonData } from "$lib/schema"; + import type { Race } from "$lib/schema"; import { RACE_PICTOGRAM_HEIGHT, RACE_PICTOGRAM_WIDTH } from "$lib/config"; import { get_race_pictogram_template } from "$lib/database"; import { format_date } from "$lib/date"; @@ -16,10 +16,11 @@ import { pb } from "$lib/pocketbase"; import { invalidateAll } from "$app/navigation"; import { error } from "@sveltejs/kit"; + import type { PageData } from "../../../routes/data/season/races/$types"; interface RaceCardProps { /** Data passed from the page context */ - data: SkeletonData; + data: PageData; /** The [Race] object used to prefill values. */ race?: Race; diff --git a/src/lib/components/cards/RacePickCard.svelte b/src/lib/components/cards/RacePickCard.svelte index dc1e8f2..30538fd 100644 --- a/src/lib/components/cards/RacePickCard.svelte +++ b/src/lib/components/cards/RacePickCard.svelte @@ -1,14 +1,6 @@