diff options
| author | Adam Soltys <[email protected]> | 2024-12-30 21:53:52 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-30 21:53:52 -0800 |
| commit | 38e786c0d3c2280dd69f22ddf7cdf6ca804e6048 (patch) | |
| tree | 48893b5eb0253104dfb2847fd0ac371eb1b492ce /src/routes/(app)/payments | |
| parent | d96e1580757a1d0531fec0854e4238214ec8c00b (diff) | |
| download | coinos-ui-38e786c0d3c2280dd69f22ddf7cdf6ca804e6048.tar.gz coinos-ui-38e786c0d3c2280dd69f22ddf7cdf6ca804e6048.zip | |
scrap key generation
Diffstat (limited to 'src/routes/(app)/payments')
| -rw-r--r-- | src/routes/(app)/payments/[...page]/+page.svelte | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte index ccdfa34c..9ef38df5 100644 --- a/src/routes/(app)/payments/[...page]/+page.svelte +++ b/src/routes/(app)/payments/[...page]/+page.svelte @@ -9,7 +9,6 @@ import { page } from "$app/stores"; import { differenceInDays, getUnixTime, sub } from "date-fns"; import { goto, invalidate } from "$app/navigation"; - import locales from "$lib/locales"; let { data } = $props(); let { start, @@ -22,8 +21,7 @@ page: p, } = $derived(data); - let locale = locales[user.language]; - let userLocale = loc(user); + let locale = loc(user); let change = ({ target: { value } }) => goto(value); let link = (p) => { @@ -203,7 +201,7 @@ {/if} </div> - <Payments {payments} /> + <Payments {payments} locale={locale} /> <div class="grid grid-cols-3 w-full text-center text-lg"> {#each Object.keys(incoming) as c} @@ -230,18 +228,18 @@ >{$t("payments.income")}</span > <!-- <span><b>{subtotalIn ? f(subtotalIn, c) : "-"}</b></span> --> - <span><b>{tipsIn > 0 ? f(tipsIn, c, userLocale) : "-"}</b></span> + <span><b>{tipsIn > 0 ? f(tipsIn, c, locale) : "-"}</b></span> <span class="text-right" - ><b>{totalIn > 0 ? f(totalIn, c, userLocale) : "-"}</b></span + ><b>{totalIn > 0 ? f(totalIn, c, locale) : "-"}</b></span > <span class="text-left text-base text-secondary" >{$t("payments.expenditure")}</span > <!-- <span><b>{subtotalOut ? f(subtotalOut, c) : "-"}</b></span> --> - <span><b>{tipsOut > 0 ? f(tipsOut, c, userLocale) : "-"}</b></span> + <span><b>{tipsOut > 0 ? f(tipsOut, c, locale) : "-"}</b></span> <span class="text-right" - ><b>{totalOut > 0 ? f(totalOut, c, userLocale) : "-"}</b></span + ><b>{totalOut > 0 ? f(totalOut, c, locale) : "-"}</b></span > {/each} </div> @@ -249,7 +247,8 @@ <div class="flex justify-center"> <button class="btn !w-auto" onclick={csv}> - <iconify-icon noobserver icon="ph:floppy-disk-bold" width="32"></iconify-icon> + <iconify-icon noobserver icon="ph:floppy-disk-bold" width="32" + ></iconify-icon> <div class="my-auto">{$t("payments.export")}</div> </button> </div> |
