diff --git a/src/lib/components/cards/TeamSwitchCard.svelte b/src/lib/components/cards/TeamSwitchCard.svelte new file mode 100644 index 0000000..2e92e0f --- /dev/null +++ b/src/lib/components/cards/TeamSwitchCard.svelte @@ -0,0 +1,154 @@ + + + modalStore.close()} +> + + + {#await data.drivers then drivers} + driver.active))} + {labelwidth} + {disabled} + {required} + > + Driver + + {/await} + + + {#await data.teams then teams} + + New Team + + {/await} + + + + + Switch Team + + + + diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index c3624d7..a793388 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -15,6 +15,7 @@ import RaceResultCard from "./cards/RaceResultCard.svelte"; import SeasonPickCard from "./cards/SeasonPickCard.svelte"; import SubstitutionCard from "./cards/SubstitutionCard.svelte"; import TeamCard from "./cards/TeamCard.svelte"; +import TeamSwitchCard from "./cards/TeamSwitchCard.svelte"; import type { DropdownOption } from "./form/Dropdown"; import type { TableColumn } from "./Table"; @@ -48,6 +49,7 @@ export { SeasonPickCard, SubstitutionCard, TeamCard, + TeamSwitchCard, // Types type DropdownOption,