Commit 96b715f2 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

show discount price on fav

parent b8b82fe5
......@@ -113,7 +113,16 @@ export default function Wishlist() {
{pdt.detail}
</div>
</TableCell>
<TableCell>{pdt.price}</TableCell>
<TableCell>
{pdt.discount > 0 ? (
<Box color={"orangered"}>
<del>${pdt.price}</del> $
{pdt.price - pdt.price * (pdt.discount / 100)}
</Box>
) : (
<span>${pdt.price}</span>
)}
</TableCell>
<TableCell>
<Button color="warning">
<ShoppingCart />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment