mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06: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 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