From c3f746c04f39f8b1dedfc3441acdbff8685e7390 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 31 Jul 2025 04:14:20 +0000 Subject: [PATCH] fix update gaping and component --- .../components/billing/paymentModal.svelte | 43 ++++++------ src/lib/components/billing/statePicker.svelte | 65 +++++++++++-------- 2 files changed, 58 insertions(+), 50 deletions(-) diff --git a/src/lib/components/billing/paymentModal.svelte b/src/lib/components/billing/paymentModal.svelte index fda3229cb..9c47b2b2f 100644 --- a/src/lib/components/billing/paymentModal.svelte +++ b/src/lib/components/billing/paymentModal.svelte @@ -101,34 +101,33 @@ bind:error onSubmit={handleSubmit}> - - -
- {#if isLoading} -
- -
- {/if} - {#if showState} -
- - -
- {:else} + {#if showState} +
+ + +
+ {:else} + +
+ {#if isLoading} +
+ +
+ {/if}
- {/if} -
+
+ {/if} diff --git a/src/lib/components/billing/statePicker.svelte b/src/lib/components/billing/statePicker.svelte index 553397d0c..d84d5c39d 100644 --- a/src/lib/components/billing/statePicker.svelte +++ b/src/lib/components/billing/statePicker.svelte @@ -2,41 +2,50 @@ import { states } from './states.js'; import { InputSelect } from '$lib/elements/forms'; import type { PaymentMethod } from '@stripe/stripe-js'; - import Card from '../card.svelte'; - import { Alert, Layout, Typography } from '@appwrite.io/pink-svelte'; + import { Alert, Card, Layout, Typography } from '@appwrite.io/pink-svelte'; import { CreditCardBrandImage } from '../index.js'; export let state: string = ''; export let card: PaymentMethod | null = null; -{#if card} - - - - ending in {card.card?.last4} - +
+ {#if card} + + + + ending in {card.card?.last4} + + + {card.card.country} + {card.billing_details.address.postal_code} + + + {/if} + + - {card.card.country} - {card.billing_details.address.postal_code} + To complete the billing information, select your state so we can apply the correct taxes + and meet U.S. legal requirements. - -{/if} + - - - To complete the billing information, select your state so we can apply the correct taxes and - meet U.S. legal requirements. - - + ({ + label: state.name, + value: state.abbreviation, + id: state.abbreviation.toLowerCase() + }))} /> +
- ({ - label: state.name, - value: state.abbreviation, - id: state.abbreviation.toLowerCase() - }))} /> +