diff --git a/src/shared/components/BuyCatalog.tsx b/src/shared/components/BuyCatalog.tsx index bbb0b2f..327db4d 100644 --- a/src/shared/components/BuyCatalog.tsx +++ b/src/shared/components/BuyCatalog.tsx @@ -2,10 +2,13 @@ import Button from "@/components/Button"; import DefaulModal from "@/components/DefaulModal"; import Input from "@/components/Input"; import { toast } from "@/components/Toast"; -import { extractErrorMessage } from "@/helpers/utils"; +import { clx, extractErrorMessage } from "@/helpers/utils"; import { usePurchaseInitate } from "@/pages/catalogue/hooks/useCatalogueData"; +import { Receipt1 } from "iconsax-react"; import { useState, type FC } from "react"; +const CATALOG_COUNTS = [1, 2, 3, 5, 10]; + const BuyCatalog: FC = () => { const [showModal, setShowModal] = useState(false); const [count, setCount] = useState(0); @@ -44,22 +47,46 @@ const BuyCatalog: FC = () => { isHeader title_header="خرید کاتالوگ" > -
- setCount(+e.target.value)} - /> -
-
- +
+
تعداد کاتالوگ مورد نظر را انتخاب کنید
+
+ {CATALOG_COUNTS.map((item) => ( +
setCount(item)} + className={clx( + "flex h-10 cursor-pointer items-center rounded-lg border border-[#EBEDF5] bg-[#EBEDF5] px-6 text-xs", + count === item && "border-black", + )} + > + {item} عدد +
+ ))} +
+ +
+ setCount(+e.target.value)} + /> +
+ +
+ +