Refactor: Update ModalBuy component dependencies and styles

This commit is contained in:
ALi Josheghani
2024-09-14 22:03:01 +03:30
parent 2cac814664
commit 7f0d184e71

View File

@@ -49,7 +49,7 @@ const ModalBuy = ({ isOpen, setIsOpen, configId }: ModalBuyProps) => {
formik.setFieldValue("discount", "");
setPrice(0);
}
}, [isOpen]);
}, [isOpen, formik]);
const mutation = useMutation({
mutationKey: ["buyConfig"],
mutationFn: (values: BuyConfigDataProps) => {
@@ -290,10 +290,10 @@ const ModalBuy = ({ isOpen, setIsOpen, configId }: ModalBuyProps) => {
<p>محدودیت کاربر</p>
<p>{data?.data?.result?.limit}</p>
</div>
{/* <div className="w-full h-full bg-gray-900/50 rounded-md shadow flex justify-between items-center p-3">
<div className="w-full h-full bg-gray-900/50 rounded-md shadow flex justify-between items-center p-3">
<p>مدت زمان</p>
<p>{data?.data?.result?.}</p>
</div> */}
<p>1 ماه</p>
</div>
</div>
</div>
)}