web/AboutSupport: replace duplicated type

This commit is contained in:
wukko 2024-10-12 19:10:31 +06:00
parent d5ea154ed8
commit c10652b8c4
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -9,9 +9,6 @@
import IconBrandDiscord from "@tabler/icons-svelte/IconBrandDiscord.svelte"; import IconBrandDiscord from "@tabler/icons-svelte/IconBrandDiscord.svelte";
import IconBrandTelegram from "@tabler/icons-svelte/IconBrandTelegram.svelte"; import IconBrandTelegram from "@tabler/icons-svelte/IconBrandTelegram.svelte";
export let platform: "github" | "discord" | "twitter" | "telegram";
export let externalLink: string;
const platformIcons = { const platformIcons = {
github: { github: {
icon: IconBrandGithub, icon: IconBrandGithub,
@ -30,6 +27,9 @@
color: "#1c9efb", color: "#1c9efb",
}, },
}; };
export let platform: keyof typeof platformIcons;
export let externalLink: string;
</script> </script>
<button <button