From 2c850cd07b8ad46ff420b0b9256ef0fab0a8244b Mon Sep 17 00:00:00 2001 From: Jelaletdin12 Date: Sat, 21 Mar 2026 19:32:30 +0500 Subject: [PATCH] fixed some sizes --- app/[locale]/cart/page.tsx | 8 ++++---- features/cart/components/CartItemCard.tsx | 2 +- features/cart/components/OrderSummary.tsx | 14 +++++++------- features/home/components/ProductCard.tsx | 20 ++++++++++---------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/[locale]/cart/page.tsx b/app/[locale]/cart/page.tsx index d34c184..d98f7d8 100644 --- a/app/[locale]/cart/page.tsx +++ b/app/[locale]/cart/page.tsx @@ -22,12 +22,12 @@ export default function CartPage() { const [paymentType, setPaymentType] = useState(null); const [deliveryType, setDeliveryType] = useState("SELECTED_DELIVERY"); - const [selectedRegion, setSelectedRegion] = useState(""); - const [selectedProvince, setSelectedProvince] = useState(null); + const [selectedRegion, setSelectedRegion] = useState("ag"); + const [selectedProvince, setSelectedProvince] = useState(4); const [note, setNote] = useState(""); const [phone, setPhone] = useState("+993 "); - const [name, setName] = useState(""); - const [lastName, setLastName] = useState(""); + const [name, setName] = useState("user"); + const [lastName, setLastName] = useState("user"); const router = useRouter(); const t = useTranslations(); diff --git a/features/cart/components/CartItemCard.tsx b/features/cart/components/CartItemCard.tsx index 7f16b31..f3576e4 100644 --- a/features/cart/components/CartItemCard.tsx +++ b/features/cart/components/CartItemCard.tsx @@ -281,7 +281,7 @@ export default function CartItemCard({ item, onUpdate }: CartItemCardProps) {
{/* Product Image & Info */}
-
+
{item.product.name} + {/* Customer Information */}

{t("customer_information")}

-
+ {/*
@@ -182,7 +182,7 @@ export default function OrderSummary({ {t("requiredField")}

)} -
+
*/}
{/* Region Selection */} -
+ {/*
@@ -246,10 +246,10 @@ export default function OrderSummary({ {t("requiredField")}

)} -
+
*/} {/* Province Selection */} - {selectedRegion && provincesForSelectedRegion.length > 0 && ( + {/* selectedRegion && provincesForSelectedRegion.length > 0 && (
- )} + ) */} {/* Note */}
diff --git a/features/home/components/ProductCard.tsx b/features/home/components/ProductCard.tsx index 2cafc18..79c2ac4 100644 --- a/features/home/components/ProductCard.tsx +++ b/features/home/components/ProductCard.tsx @@ -272,7 +272,7 @@ export default function ProductCard({ // style={{ height, maxWidth: width }} > {/* Image Section */} -
+
setIsInteracting(false)} onPointerCancel={() => setIsInteracting(false)} > - + {images.map((image, idx) => ( - -
+ +
{`${name} {/* Product Name */} -

+

{name}

{/* Price */} -
+

- {struct_price_text} + {struct_price_text.replace(/\.00\b/, "")}

{oldPrice && ( @@ -426,9 +426,9 @@ export default function ProductCard({ ) : ( <> - + {/* {t("add_to_cart")} - + */} )}