diff options
| author | Adam Soltys <[email protected]> | 2024-12-06 11:12:56 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-06 11:12:56 -0800 |
| commit | 00e2ae45aa1e7b2114e0ebb1d344d950e4fa09a3 (patch) | |
| tree | 80f6ac5034a1ef4c1667c13787167c0dbd2be48a /src/routes | |
| parent | 1bcde4bf0ae386c999de34960b1575465d0ab541 (diff) | |
| download | coinos-ui-00e2ae45aa1e7b2114e0ebb1d344d950e4fa09a3.tar.gz coinos-ui-00e2ae45aa1e7b2114e0ebb1d344d950e4fa09a3.zip | |
fix payment buttons
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/(app)/+layout.svelte | 2 | ||||
| -rw-r--r-- | src/routes/(app)/payments/[...page]/+page.svelte | 10 |
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> |
