aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-06 11:12:56 -0800
committerAdam Soltys <[email protected]>2024-12-06 11:12:56 -0800
commitf193c6d18f839a9068e80c07589c66620b8ee84b (patch)
tree80f6ac5034a1ef4c1667c13787167c0dbd2be48a /src
parent8668c35c9a76c747429416a2e7b745119d50a92a (diff)
downloadcoinos-ui-f193c6d18f839a9068e80c07589c66620b8ee84b.tar.gz
coinos-ui-f193c6d18f839a9068e80c07589c66620b8ee84b.zip
fix payment buttons
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/+layout.svelte2
-rw-r--r--src/routes/(app)/payments/[...page]/+page.svelte10
2 files changed, 7 insertions, 5 deletions
diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte
index d2644443..31238a87 100644
--- a/src/routes/(app)/+layout.svelte
+++ b/src/routes/(app)/+layout.svelte
@@ -26,7 +26,7 @@
let { user, subject, token } = $derived(data);
let { theme } = $state(data);
- $themeStore = theme;
+ $effect(() => ($themeStore = theme));
$effect(() => (theme = $themeStore));
afterNavigate(() => {
diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte
index 5204b35f..c19c38bd 100644
--- a/src/routes/(app)/payments/[...page]/+page.svelte
+++ b/src/routes/(app)/payments/[...page]/+page.svelte
@@ -170,10 +170,12 @@
<div class="container w-full mx-auto text-lg px-2 max-w-xl space-y-2">
<div class="mx-auto flex justify-center w-full gap-1">
{#each presets as { start, end, title }, i}
- <a href={`/payments/${getUnixTime(start) + "/"}1`}>
- <button class="btn" class:btn-active={selection === i}>
- <div class="my-auto">{title}</div>
- </button>
+ <a
+ href={`/payments/${getUnixTime(start)}/1`}
+ class="btn !w-auto"
+ class:!btn-active={selection === i}
+ >
+ {title}
</a>
{/each}
</div>