From ca2fe8ece1bc94769f1b52ac444dd8e15b7f996a Mon Sep 17 00:00:00 2001 From: Carter Mintey Date: Thu, 7 Nov 2024 21:44:29 -0600 Subject: [PATCH] copy component from skeleton to fix typing --- src/lib/components/Tab/TabGroup.svelte | 73 +++++++++++++++++++ src/routes/account/+page.svelte | 3 +- src/routes/admin/+layout.svelte | 3 +- .../admin/groups/[groupId]/+layout@.svelte | 3 +- 4 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 src/lib/components/Tab/TabGroup.svelte diff --git a/src/lib/components/Tab/TabGroup.svelte b/src/lib/components/Tab/TabGroup.svelte new file mode 100644 index 0000000..75f0bb6 --- /dev/null +++ b/src/lib/components/Tab/TabGroup.svelte @@ -0,0 +1,73 @@ + + + +
+ +
+ +
+ + {#if $$slots.panel} +
+ +
+ {/if} +
diff --git a/src/routes/account/+page.svelte b/src/routes/account/+page.svelte index 3750509..29f8570 100644 --- a/src/routes/account/+page.svelte +++ b/src/routes/account/+page.svelte @@ -3,8 +3,9 @@ import ChangePassword from "$lib/components/account/ChangePassword.svelte"; import EditProfile from "$lib/components/account/EditProfile.svelte"; import Avatar from "$lib/components/Avatar.svelte"; - import { FileButton, Tab, TabGroup } from "@skeletonlabs/skeleton"; + import { FileButton, Tab } from "@skeletonlabs/skeleton"; import type { PageServerData } from "./$types"; + import TabGroup from "$lib/components/Tab/TabGroup.svelte"; interface Props { data: PageServerData; diff --git a/src/routes/admin/+layout.svelte b/src/routes/admin/+layout.svelte index 36f9242..18864a6 100644 --- a/src/routes/admin/+layout.svelte +++ b/src/routes/admin/+layout.svelte @@ -1,7 +1,8 @@