Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions components/Checkout/CheckoutButton.vue

This file was deleted.

2 changes: 1 addition & 1 deletion components/Checkout/CheckoutForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ErrorMessage>
</div>
<div class="w-full flex justify-center mt-6">
<CheckoutButton />
<CommonButton>SUBMIT ORDER</CommonButton>
</div>
</div>
</Form>
Expand Down
2 changes: 1 addition & 1 deletion components/Products/ProductsSingleProduct.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</select>
</p>
<div class="pt-1 mt-2">
<CartAddToCartButton :product="data.product" />
<ProductsAddToCartButton :product="data.product" />
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion components/common/CommonButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<button
:class="{ disabled: isLoading }"
@click="$emit('CommonButtonClick')"
type="submit"
>
<slot />
<svg
Expand All @@ -29,6 +30,7 @@
<button
:class="{ disabled: isLoading }"
@click="$emit('CommonButtonClick')"
type="submit"
>
<slot />
<svg
Expand All @@ -54,7 +56,7 @@
<script setup>
/*
* Usage:
* <CommonButton @common-button-click="functionName" isLoading="true">Common button</CommonButton>
* <CommonButton @common-button-click="functionName" is-loading="true" link-to="/link">Common button</CommonButton>
*/

defineEmits(["CommonButtonClick"]);
Expand Down