Commit 27be3440 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

update span to Box wishlist page

parent 96b715f2
...@@ -15,6 +15,7 @@ import axios from "axios"; ...@@ -15,6 +15,7 @@ import axios from "axios";
import { Delete } from "@mui/icons-material"; import { Delete } from "@mui/icons-material";
import { ShoppingCart } from "@mui/icons-material"; import { ShoppingCart } from "@mui/icons-material";
import PopupAlert from "@/components/PopupAlert"; import PopupAlert from "@/components/PopupAlert";
import Head from "next/head";
export default function Wishlist() { export default function Wishlist() {
const user = useContext(UserContext); const user = useContext(UserContext);
...@@ -70,6 +71,10 @@ export default function Wishlist() { ...@@ -70,6 +71,10 @@ export default function Wishlist() {
}, [wishlist, products]); }, [wishlist, products]);
return ( return (
<>
<Head>
<title>รายการชื่นชอบ | OpenShop</title>
</Head>
<Box> <Box>
<PopupAlert <PopupAlert
open={!!message.message.length} open={!!message.message.length}
...@@ -120,7 +125,7 @@ export default function Wishlist() { ...@@ -120,7 +125,7 @@ export default function Wishlist() {
{pdt.price - pdt.price * (pdt.discount / 100)} {pdt.price - pdt.price * (pdt.discount / 100)}
</Box> </Box>
) : ( ) : (
<span>${pdt.price}</span> <Box color="orangered">${pdt.price}</Box>
)} )}
</TableCell> </TableCell>
<TableCell> <TableCell>
...@@ -146,5 +151,6 @@ export default function Wishlist() { ...@@ -146,5 +151,6 @@ export default function Wishlist() {
)} )}
</Paper> </Paper>
</Box> </Box>
</>
); );
} }
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