From 00498f8fe0166f9d22d51d1c8aa360f1d67a931c Mon Sep 17 00:00:00 2001 From: w3bdesign <45217974+w3bdesign@users.noreply.github.com> Date: Mon, 30 Jun 2025 04:19:34 +0200 Subject: [PATCH] Update CartItem.vue --- components/Cart/CartItem.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/Cart/CartItem.vue b/components/Cart/CartItem.vue index 3eb56da7..c37bf71a 100644 --- a/components/Cart/CartItem.vue +++ b/components/Cart/CartItem.vue @@ -54,6 +54,13 @@ import { ref, watch } from "vue"; import { formatPrice } from "@/utils/functions"; +const props = defineProps({ + product: { + type: Object, + required: true, + }, +}); + const isRemoving = ref(false); const isUpdating = ref(false); const localQuantity = ref(props.product.quantity); @@ -65,13 +72,6 @@ watch( } ); -const props = defineProps({ - product: { - type: Object, - required: true, - }, -}); - const emit = defineEmits(["remove", "update-quantity"]); /**