From 4091fe840ec5e020182de8fff3a8c25403b2b921 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 16 Dec 2024 17:34:20 +0100 Subject: [PATCH] Lib: Update DriverCard to reflect lib changes (lazy loading) --- src/lib/components/DriverCard.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/DriverCard.svelte b/src/lib/components/DriverCard.svelte index 89b22f3..b17a2cd 100644 --- a/src/lib/components/DriverCard.svelte +++ b/src/lib/components/DriverCard.svelte @@ -5,7 +5,7 @@ import Button from "./Button.svelte"; import type { Driver } from "$lib/schema"; import Input from "./Input.svelte"; - import LazyDropdown, { type DropdownOption } from "./LazyDropdown.svelte"; + import LazyDropdown, { type LazyDropdownOption } from "./LazyDropdown.svelte"; import { DRIVER_HEADSHOT_HEIGHT, DRIVER_HEADSHOT_WIDTH } from "$lib/config"; interface DriverCardProps { @@ -25,7 +25,7 @@ team_select_value: string; /** The options this component's team select dropdown will display */ - team_select_options: DropdownOption[]; + team_select_options: LazyDropdownOption[]; /** The value this component's active switch will bind to */ active_value: boolean; @@ -122,6 +122,7 @@ background="bg-primary-500" active="bg-tertiary-500" bind:checked={active_value} + disabled={disable_inputs} /> {#if driver}