Commit 95287ec6 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

update styles for user

parent 53a55fde
...@@ -75,7 +75,7 @@ export default function Cart() { ...@@ -75,7 +75,7 @@ export default function Cart() {
isError={message.error} isError={message.error}
message={message.message} message={message.message}
/> />
<Paper sx={{ p: 1, overflowX: "scroll" }}> <Paper className="shadow-none" sx={{ p: 2, overflowX: "scroll" }}>
{cart.value.length > 0 ? ( {cart.value.length > 0 ? (
<Box> <Box>
<Table> <Table>
......
...@@ -9,6 +9,7 @@ import PopupAlert from "@/components/PopupAlert"; ...@@ -9,6 +9,7 @@ import PopupAlert from "@/components/PopupAlert";
import { import {
Box, Box,
Button, Button,
CircularProgress,
FormControl, FormControl,
FormLabel, FormLabel,
MenuItem, MenuItem,
...@@ -239,7 +240,7 @@ export default function Home() { ...@@ -239,7 +240,7 @@ export default function Home() {
))} ))}
</div> </div>
) : ( ) : (
<Paper sx={{ p: 2, textAlign: "center" }}>ไม่พบรายการ</Paper> <Paper className="shadow-none" sx={{ p: 2, textAlign: "center" }}><CircularProgress /></Paper>
)} )}
</div> </div>
</> </>
......
...@@ -62,21 +62,25 @@ export default function Order() { ...@@ -62,21 +62,25 @@ export default function Order() {
message={message.message} message={message.message}
/> />
<Box sx={{ maxWidth: 1200, mx: "auto" }}> <Box sx={{ maxWidth: 1200, mx: "auto" }}>
<Box sx={{pb:2}}> <Box sx={{ pb: 2 }}>
<Stack <Stack
direction={"row"} direction={"row"}
alignItems={"center"} alignItems={"center"}
justifyContent={"end"} justifyContent={"end"}
> >
{order.value?.length ? (
<Button <Button
onClick={() => setPayFilter(!payFilter)} onClick={() => setPayFilter(!payFilter)}
variant={payFilter ? "contained" : "text"} variant={payFilter ? "contained" : "text"}
> >
ดูรายกายที่ยังไม่ชำระเงิน ดูรายกายที่ยังไม่ชำระเงิน
</Button> </Button>
) : (
""
)}
</Stack> </Stack>
</Box> </Box>
<Paper sx={{ p: 1, overflowX: "scroll" }}> <Paper className="shadow-none" sx={{ p: 2, overflowX: "scroll" }}>
{order.value?.length > 0 ? ( {order.value?.length > 0 ? (
<Box> <Box>
<Table> <Table>
......
...@@ -116,7 +116,7 @@ export default function Wishlist() { ...@@ -116,7 +116,7 @@ export default function Wishlist() {
isError={message.error} isError={message.error}
message={message.message} message={message.message}
/> />
<Paper sx={{ p: 1, overflowX: "scroll" }}> <Paper className="shadow-none" sx={{ p: 2, overflowX: "scroll" }}>
{wishlist.value.length > 0 ? ( {wishlist.value.length > 0 ? (
<Table> <Table>
<TableHead> <TableHead>
......
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