Split checkout widget into separate components

This commit is contained in:
2025-05-15 17:00:20 +02:00
parent ec87ae59fc
commit 732fdb8687
23 changed files with 884 additions and 644 deletions

View File

@@ -1,5 +1,5 @@
<script>
import CreditDeposit from "layout/CreditDeposit.svelte";
import Checkout from "layout/checkout/Checkout.svelte";
import LoginRegister from "login/LoginRegister.svelte";
import Euro from "util/Euro.svelte";
</script>
@@ -19,13 +19,13 @@ import Euro from "util/Euro.svelte";
balance is <Euro amount={window.user.balance_micro_eur}/>. Use
the form below to top up your balance.
</p>
<CreditDeposit/>
<Checkout/>
{:else}
<p>
You are currently logged in as '{window.user.username}'. Use the
form below to activate prepaid on this account.
</p>
<CreditDeposit/>
<Checkout/>
{/if}
</section>
</div>