mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +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 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
|
||||||
|
|
Loading…
Reference in a new issue