diff options
| author | Adam Soltys <[email protected]> | 2025-01-15 15:37:19 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-15 15:37:19 -0800 |
| commit | 25e3f9890bc214b4c714854f572e7a8c2625a1ee (patch) | |
| tree | 70648825da0e86cdb76decf44023b71a696b3b36 /src/components/SetType.svelte | |
| parent | c6add8ed135e23c566b1d9a25651482370989b55 (diff) | |
| download | coinos-ui-25e3f9890bc214b4c714854f572e7a8c2625a1ee.tar.gz coinos-ui-25e3f9890bc214b4c714854f572e7a8c2625a1ee.zip | |
invoice type selection
Diffstat (limited to 'src/components/SetType.svelte')
| -rw-r--r-- | src/components/SetType.svelte | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/components/SetType.svelte b/src/components/SetType.svelte new file mode 100644 index 00000000..7e80d0bc --- /dev/null +++ b/src/components/SetType.svelte @@ -0,0 +1,37 @@ +<script> + import InvoiceTypes from "$comp/InvoiceTypes.svelte"; + import { focus } from "$lib/utils"; + + let { + newAmount = $bindable(), + invoice, + user, + submit = $bindable(), + settingType, + setAmount, + setType, + toggleType, + t, + } = $props(); + + let { aid, type } = $derived(invoice); +</script> + +{#if settingType} + <div + class="fixed inset-0 bg-base-100 bg-opacity-90 overflow-y-auto h-full w-full z-50" + > + <div + class="relative mx-auto p-12 max-w-xl shadow-lg rounded-md bg-base-100 space-y-2" + > + <InvoiceTypes + bind:newAmount + {setAmount} + {invoice} + {user} + {setType} + t={$t} + /> + </div> + </div> +{/if} |
