aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/sent
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-14 13:32:52 -0800
committerAdam Soltys <[email protected]>2024-11-14 16:09:51 -0800
commit0f35462ebdde3701e8fe927b3debace9abf79305 (patch)
tree786d8c833e16762b87a193fb4c09d634784f7744 /src/routes/(app)/sent
parent614fbd99b7963ec89666b8b4252fa5f73c81653c (diff)
downloadcoinos-ui-0f35462ebdde3701e8fe927b3debace9abf79305.tar.gz
coinos-ui-0f35462ebdde3701e8fe927b3debace9abf79305.zip
payment amount helpers
Diffstat (limited to 'src/routes/(app)/sent')
-rw-r--r--src/routes/(app)/sent/[id]/+page.svelte18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/routes/(app)/sent/[id]/+page.svelte b/src/routes/(app)/sent/[id]/+page.svelte
index f2f14fef..2eb1f18b 100644
--- a/src/routes/(app)/sent/[id]/+page.svelte
+++ b/src/routes/(app)/sent/[id]/+page.svelte
@@ -1,27 +1,15 @@
<script>
- import { f, focus, s, sat, sats } from "$lib/utils";
- import { scale } from "svelte/transition";
- import Amount from "$comp/Amount.svelte";
- import Icon from "$comp/Icon.svelte";
- import { toast } from "@zerodevx/svelte-toast";
+ import { focus } from "$lib/utils";
import { t } from "$lib/translations";
+ import Success from "$comp/Success.svelte";
let { data } = $props();
let { amount, rate, tip, user } = $state(data);
let { currency, username } = user;
amount = Math.abs(amount);
-
- toast.pop(0);
</script>
-<div class="text-center mt-20 md:mt-0">
- <div class="flex w-full max-w-[200px] mx-auto py-4" in:scale={{ start: 0.5 }}>
- <Icon icon="check" style="mx-auto" />
- </div>
- <h1 class="text-3xl md:text-4xl font-bold mb-6">{$t("payments.sent")}!</h1>
- <Amount {amount} {tip} {rate} {currency} />
-</div>
-
+<Success {amount} {rate} {tip} {currency} title={`${$t("payments.sent")}!`} />
<a href={`/${username}`} use:focus>
<div class="opacity-0 w-screen h-screen fixed top-0 left-0 z-50"></div>
</a>