mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
web/AboutSupport: replace duplicated type
This commit is contained in:
parent
d5ea154ed8
commit
c10652b8c4
|
@ -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;
|
||||
</script>
|
||||
|
||||
<button
|
||||
|
|
Loading…
Reference in a new issue