From 653d8fc1244e61b78adce5786a14ff7e02a91579 Mon Sep 17 00:00:00 2001 From: ALi Josheghani Date: Fri, 4 Oct 2024 17:06:42 +0330 Subject: [PATCH] feat : add alert check vpn on modal buy components --- .../section/productList/components/ModalBuy.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/pages/shop/section/productList/components/ModalBuy.tsx b/src/pages/shop/section/productList/components/ModalBuy.tsx index c1b7909..e0265d2 100644 --- a/src/pages/shop/section/productList/components/ModalBuy.tsx +++ b/src/pages/shop/section/productList/components/ModalBuy.tsx @@ -148,7 +148,7 @@ const ModalBuy = ({ isOpen, setIsOpen, configId }: ModalBuyProps) => { ) { errorMessage = (err.response.data as { alert: string }).alert; } - toast.error(`خطایی رخ داد : ${errorMessage}`) + toast.error(`خطایی رخ داد : ${errorMessage}`); // dispatch(setIsPaymentGateway(false)); // navigate("/noactive-payment"); return errorMessage; @@ -207,6 +207,11 @@ const ModalBuy = ({ isOpen, setIsOpen, configId }: ModalBuyProps) => { ) : (
+ + {" "} + کاربر گرامی لطفا از خاموش بودن vpn خود اطمینان حاصل فرمایید تا در + درگاه پرداخت مشکلی نداشته باشید{" "} +

مبلغ قابل پرداخت :{" "} @@ -217,7 +222,10 @@ const ModalBuy = ({ isOpen, setIsOpen, configId }: ModalBuyProps) => {

{data?.data?.result?.max_config === 0 ? ( <> - موجودی کانفیگ به اتمام رسیده + + {" "} + موجودی کانفیگ به اتمام رسیده{" "} + ) : ( <> @@ -291,8 +299,8 @@ const ModalBuy = ({ isOpen, setIsOpen, configId }: ModalBuyProps) => {

{data?.data?.result?.limit}

-

مدت زمان

-

1 ماه

+

مدت زمان

+

1 ماه