From c7cd096d41a237ad2fa4a8e6475bb6b0134279d4 Mon Sep 17 00:00:00 2001 From: Gigi <47110839+DarthGigi@users.noreply.github.com> Date: Sat, 20 Jul 2024 14:56:45 +0200 Subject: [PATCH] chore: Add Avatar and Image components for Slayer section --- src/lib/sections/stats/Slayer.svelte | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/lib/sections/stats/Slayer.svelte b/src/lib/sections/stats/Slayer.svelte index c0cb67cd..b0d96392 100644 --- a/src/lib/sections/stats/Slayer.svelte +++ b/src/lib/sections/stats/Slayer.svelte @@ -2,14 +2,13 @@ import AdditionStat from "$lib/components/AdditionStat.svelte"; import Bonus from "$lib/components/Bonus.svelte"; import type { Stats as StatsType } from "$types/stats"; - import { Progress } from "bits-ui"; + import { Avatar, Progress } from "bits-ui"; + import Image from "lucide-svelte/icons/image"; import { format } from "numerable"; import { getContext } from "svelte"; const profile = getContext("profile"); const slayer = profile.slayer; - - console.log(slayer);
@@ -20,11 +19,17 @@ {#each Object.entries(slayer.data) as [key, value]} {#if value.level.xp > 0}
-
+
+ + + + + + {value.name}
-
- {#each Object.entries(value.kills) as [key, value]} +
+ {#each Object.entries(value.kills) as [key, killValue]}
{#if !isNaN(Number(key))} @@ -34,13 +39,13 @@ {/if} - {format(value)} + {format(killValue)}
{/each}
-
-

+

+

{key} Level {value.level.level}