mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
web/AboutSupport: replace duplicated type
This commit is contained in:
parent
d5ea154ed8
commit
c10652b8c4
1 changed files with 3 additions and 3 deletions
|
@ -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