From c10652b8c4586dbe14ae5d52c9dcb2e19363cddd Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 12 Oct 2024 19:10:31 +0600 Subject: [PATCH] web/AboutSupport: replace duplicated type --- web/src/components/about/AboutSupport.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/about/AboutSupport.svelte b/web/src/components/about/AboutSupport.svelte index 2d4727f4..1e9170b6 100644 --- a/web/src/components/about/AboutSupport.svelte +++ b/web/src/components/about/AboutSupport.svelte @@ -9,9 +9,6 @@ import IconBrandDiscord from "@tabler/icons-svelte/IconBrandDiscord.svelte"; import IconBrandTelegram from "@tabler/icons-svelte/IconBrandTelegram.svelte"; - export let platform: "github" | "discord" | "twitter" | "telegram"; - export let externalLink: string; - const platformIcons = { github: { icon: IconBrandGithub, @@ -30,6 +27,9 @@ color: "#1c9efb", }, }; + + export let platform: keyof typeof platformIcons; + export let externalLink: string;