Skip to content

Commit 1dd42ec

Browse files
committed
Refactor code
1 parent 4c0146b commit 1dd42ec

File tree

3 files changed

+3
-35
lines changed

3 files changed

+3
-35
lines changed

components/Checkout/CheckoutButton.vue

Lines changed: 0 additions & 34 deletions
This file was deleted.

components/Checkout/CheckoutForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</ErrorMessage>
2727
</div>
2828
<div class="w-full flex justify-center mt-6">
29-
<CheckoutButton />
29+
<CommonButton>SUBMIT ORDER</CommonButton>
3030
</div>
3131
</div>
3232
</Form>

components/common/CommonButton.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<button
55
:class="{ disabled: isLoading }"
66
@click="$emit('CommonButtonClick')"
7+
type="submit"
78
>
89
<slot />
910
<svg
@@ -29,6 +30,7 @@
2930
<button
3031
:class="{ disabled: isLoading }"
3132
@click="$emit('CommonButtonClick')"
33+
type="submit"
3234
>
3335
<slot />
3436
<svg

0 commit comments

Comments
 (0)