diff --git a/src/lib/layouts/stats/PlayerProfile.svelte b/src/lib/layouts/stats/PlayerProfile.svelte index f4d3c6ef..f1e37cd1 100644 --- a/src/lib/layouts/stats/PlayerProfile.svelte +++ b/src/lib/layouts/stats/PlayerProfile.svelte @@ -2,6 +2,7 @@ import { flyAndScale } from "$lib/shared/utils"; import type { Stats as StatsType } from "$lib/types/stats"; import { Avatar, Button, DropdownMenu } from "bits-ui"; + import ChevronLeft from "lucide-svelte/icons/chevron-left"; import ChevronRight from "lucide-svelte/icons/chevron-right"; import ExternalLink from "lucide-svelte/icons/external-link"; import Share from "lucide-svelte/icons/share"; @@ -9,16 +10,17 @@ import { getContext } from "svelte"; const profile = getContext("profile"); - const iconMapper: Record = { - twitter: "x-twitter.svg", - youtube: "youtube.svg", - instagram: "instagram.svg", - tiktok: "tiktok.svg", - twitch: "twitch.svg", - discord: "discord.svg", - hypixel: "hypixel.png" + TWITTER: "x-twitter.svg", + YOUTUBE: "youtube.svg", + INSTAGRAM: "instagram.svg", + TIKTOK: "tiktok.svg", + TWITCH: "twitch.svg", + DISCORD: "discord.svg", + HYPIXEL: "hypixel.png" }; + + let showMore = $state(false);
@@ -55,19 +57,19 @@
- - + + { await navigator.share({ url: location.href, title: `Stats for ${profile.username} on Hypixel` }); }}> - + @@ -78,26 +80,22 @@ Elite - navigator.clipboard.writeText(profile.uuid)}>Copy UUID - {#each Object.entries(profile.social) as [key, value]} - {key} - {value} - {/each} + + {#each Object.entries(profile.social) as [key, value]} - {#if key === "discord"} - navigator.clipboard.writeText(value)}> + {#if key === "DISCORD"} + {:else} - +