|
|
|
@ -54,7 +54,7 @@ export const Product = ({ |
|
|
|
|
{/* Portrait */} |
|
|
|
|
{isMobile ? ( |
|
|
|
|
<div className="w-full flex flex-col bg-transparent px-4 pb-24"> |
|
|
|
|
{!book && ( |
|
|
|
|
{(!book) && ( |
|
|
|
|
<div className="w-full h-screen flex justify-center items-center bg-white bg-opacity-20 backdrop-filter backdrop-blur-xl fixed left-0 top-0 z-50"> |
|
|
|
|
<Loading size={4} color="bg-green-400" /> |
|
|
|
|
</div> |
|
|
|
@ -115,7 +115,7 @@ export const Product = ({ |
|
|
|
|
<ButtonBetween |
|
|
|
|
width="72%" |
|
|
|
|
item={"خرید نسخه دیجیتال کتاب"} |
|
|
|
|
status={separate(book?.product[1]?.price) + " " + "تومان"} |
|
|
|
|
status={separate(book?.product[0]?.price) + " " + "تومان"} |
|
|
|
|
onClick={() => |
|
|
|
|
userId |
|
|
|
|
? pushToCart({ |
|
|
|
@ -138,7 +138,7 @@ export const Product = ({ |
|
|
|
|
<ButtonBetween |
|
|
|
|
width="72%" |
|
|
|
|
item={"خرید نسخه ویدئویی کتاب"} |
|
|
|
|
status={separate(book?.product[1]?.price) + " " + "تومان"} |
|
|
|
|
status={separate(book?.product[2]?.price) + " " + "تومان"} |
|
|
|
|
onClick={() => |
|
|
|
|
userId |
|
|
|
|
? pushToCart({ |
|
|
|
@ -152,7 +152,7 @@ export const Product = ({ |
|
|
|
|
<ButtonBetween |
|
|
|
|
width="25%" |
|
|
|
|
item={"پیش نمایش"} |
|
|
|
|
onClick={() => navigation('/videos/' + book?.idK)} |
|
|
|
|
onClick={() => navigation("/videos/" + book?.id)} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<div className="w-full flex flex-col justify-between items-center mt-8"> |
|
|
|
|