|
|
|
@ -12,7 +12,7 @@ import deleteIcon from "../../../assets/icons/delete.svg"; |
|
|
|
|
function Product({ product, grades, pushToCart, isMobile, loading }) { |
|
|
|
|
return isMobile ? ( |
|
|
|
|
<div className="flex flex-row justify-between py-5 border-b border-solid border-grayDB dark:border-gray45"> |
|
|
|
|
<div className="flex flex-row"> |
|
|
|
|
<div className="flex flex-row "> |
|
|
|
|
<img |
|
|
|
|
src={"https://dnvn.ir/api/v1/file/" + product.product.book.fileIds} |
|
|
|
|
className="rounded-md w-20" |
|
|
|
@ -29,7 +29,7 @@ function Product({ product, grades, pushToCart, isMobile, loading }) { |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div className={"flex flex-col justify-between items-end"}> |
|
|
|
|
<div className="flex flex-col justify-between items-end "> |
|
|
|
|
<img |
|
|
|
|
src={exitIcon} |
|
|
|
|
className="w-4" |
|
|
|
@ -86,7 +86,7 @@ function Product({ product, grades, pushToCart, isMobile, loading }) { |
|
|
|
|
} |
|
|
|
|
src={deleteIcon} |
|
|
|
|
alt="delete" |
|
|
|
|
className="border border-red-800 border-solid p-1 w-8 bg-red-100 rounded-md cursor-pointer" |
|
|
|
|
className="border border-blue-800 border-solid p-1 w-8 bg-red-100 rounded-md cursor-pointer" |
|
|
|
|
/> |
|
|
|
|
) : ( |
|
|
|
|
<button |
|
|
|
@ -177,7 +177,7 @@ function Product({ product, grades, pushToCart, isMobile, loading }) { |
|
|
|
|
} |
|
|
|
|
src={deleteIcon} |
|
|
|
|
alt="delete" |
|
|
|
|
className="border border-red-800 border-solid p-1 w-8 bg-red-100 rounded-md cursor-pointer" |
|
|
|
|
className="border border-red-300 border-solid p-1 w-7 bg-red-100 rounded-md cursor-pointer" |
|
|
|
|
/> |
|
|
|
|
) : ( |
|
|
|
|
<button |
|
|
|
|