From 270461a445dfcb150992f654e0f2605bb0fed7b2 Mon Sep 17 00:00:00 2001 From: Gigi <47110839+DarthGigi@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:58:07 +0200 Subject: [PATCH] feat: Add subData support to AdditionStat component --- src/lib/components/AdditionStat.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/components/AdditionStat.svelte b/src/lib/components/AdditionStat.svelte index 49db1c09b..fdf6bcfca 100644 --- a/src/lib/components/AdditionStat.svelte +++ b/src/lib/components/AdditionStat.svelte @@ -4,6 +4,7 @@ export let text: string; export let data: string; + export let subData: string | undefined = undefined; export let asterisk: boolean = false; let className: string | null | undefined = undefined; @@ -13,7 +14,13 @@
{text}:
- {data} + {data} + {#if subData} + {subData} + {/if} + + {#if asterisk} * {/if}