agb check state
This commit is contained in:
parent
c3248099c6
commit
828cc0547e
@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
type StepType = (typeof Steps)[keyof typeof Steps];
|
type StepType = (typeof Steps)[keyof typeof Steps];
|
||||||
let currentStep = $state<StepType>(Steps.WELCOME);
|
let currentStep = $state<StepType>(Steps.WELCOME);
|
||||||
|
let agbAgreed = $state<boolean>(false);
|
||||||
let email = $state<string>("");
|
let email = $state<string>("");
|
||||||
let firstname = $state<string>("");
|
let firstname = $state<string>("");
|
||||||
let lastname = $state<string>("");
|
let lastname = $state<string>("");
|
||||||
@ -188,7 +189,7 @@
|
|||||||
By registering, you confirm that {email} is your email
|
By registering, you confirm that {email} is your email
|
||||||
{/if}
|
{/if}
|
||||||
<div class="items-top flex space-x-2">
|
<div class="items-top flex space-x-2">
|
||||||
<Checkbox autofocus id="terms1" />
|
<Checkbox bind:checked={agbAgreed} autofocus id="terms1" />
|
||||||
<div class="grid gap-1.5 leading-none">
|
<div class="grid gap-1.5 leading-none">
|
||||||
<Label
|
<Label
|
||||||
for="terms1"
|
for="terms1"
|
||||||
@ -202,6 +203,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
|
disabled={!agbAgreed}
|
||||||
variant="default"
|
variant="default"
|
||||||
class="w-full"
|
class="w-full"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user