Skip to content

Commit 37b3b72

Browse files
committed
updated to use Layout
1 parent c3f746c commit 37b3b72

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

src/lib/components/billing/paymentModal.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@
102102
onSubmit={handleSubmit}>
103103
<slot />
104104
{#if showState}
105-
<div class="state-element">
106-
<!-- input select for state picker -->
107-
<StatePicker card={paymentMethod} bind:state />
108-
</div>
105+
<!-- input select for state picker -->
106+
<StatePicker card={paymentMethod} bind:state />
109107
{:else}
110108
<InputText
111109
id="name"

src/lib/components/billing/statePicker.svelte

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
export let card: PaymentMethod | null = null;
1010
</script>
1111

12-
<div class="state-picker-container">
12+
<Layout.Stack direction="column" gap="s">
1313
{#if card}
1414
<Card.Base variant="secondary" padding="s">
1515
<Layout.Stack direction="row" alignItems="center" gap="s">
@@ -32,6 +32,7 @@
3232

3333
<InputSelect
3434
bind:value={state}
35+
required
3536
label="State"
3637
placeholder="Select a state"
3738
id="state-picker"
@@ -40,12 +41,4 @@
4041
value: state.abbreviation,
4142
id: state.abbreviation.toLowerCase()
4243
}))} />
43-
</div>
44-
45-
<style>
46-
.state-picker-container {
47-
display: flex;
48-
flex-direction: column;
49-
gap: 1rem;
50-
}
51-
</style>
44+
</Layout.Stack>

0 commit comments

Comments
 (0)