Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
final-exam
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
final-exam
Commits
95287ec6
Commit
95287ec6
authored
Oct 06, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update styles for user
parent
53a55fde
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
cart.js
src/pages/cart.js
+1
-1
index.js
src/pages/index.js
+2
-1
order.js
src/pages/order.js
+12
-8
wishlist.js
src/pages/wishlist.js
+1
-1
No files found.
src/pages/cart.js
View file @
95287ec6
...
...
@@ -75,7 +75,7 @@ export default function Cart() {
isError
=
{
message
.
error
}
message
=
{
message
.
message
}
/
>
<
Paper
sx
=
{{
p
:
1
,
overflowX
:
"scroll"
}}
>
<
Paper
className
=
"shadow-none"
sx
=
{{
p
:
2
,
overflowX
:
"scroll"
}}
>
{
cart
.
value
.
length
>
0
?
(
<
Box
>
<
Table
>
...
...
src/pages/index.js
View file @
95287ec6
...
...
@@ -9,6 +9,7 @@ import PopupAlert from "@/components/PopupAlert";
import
{
Box
,
Button
,
CircularProgress
,
FormControl
,
FormLabel
,
MenuItem
,
...
...
@@ -239,7 +240,7 @@ export default function Home() {
))}
<
/div
>
)
:
(
<
Paper
sx
=
{{
p
:
2
,
textAlign
:
"center"
}}
>
ไม่พบรายการ
<
/Paper
>
<
Paper
className
=
"shadow-none"
sx
=
{{
p
:
2
,
textAlign
:
"center"
}}
><
CircularProgress
/>
<
/Paper
>
)}
<
/div
>
<
/
>
...
...
src/pages/order.js
View file @
95287ec6
...
...
@@ -62,21 +62,25 @@ export default function Order() {
message
=
{
message
.
message
}
/
>
<
Box
sx
=
{{
maxWidth
:
1200
,
mx
:
"auto"
}}
>
<
Box
sx
=
{{
pb
:
2
}}
>
<
Box
sx
=
{{
pb
:
2
}}
>
<
Stack
direction
=
{
"row"
}
alignItems
=
{
"center"
}
justifyContent
=
{
"end"
}
>
<
Button
onClick
=
{()
=>
setPayFilter
(
!
payFilter
)}
variant
=
{
payFilter
?
"contained"
:
"text"
}
>
ดูรายกายที่ยังไม่ชำระเงิน
<
/Button
>
{
order
.
value
?.
length
?
(
<
Button
onClick
=
{()
=>
setPayFilter
(
!
payFilter
)}
variant
=
{
payFilter
?
"contained"
:
"text"
}
>
ดูรายกายที่ยังไม่ชำระเงิน
<
/Button
>
)
:
(
""
)}
<
/Stack
>
<
/Box
>
<
Paper
sx
=
{{
p
:
1
,
overflowX
:
"scroll"
}}
>
<
Paper
className
=
"shadow-none"
sx
=
{{
p
:
2
,
overflowX
:
"scroll"
}}
>
{
order
.
value
?.
length
>
0
?
(
<
Box
>
<
Table
>
...
...
src/pages/wishlist.js
View file @
95287ec6
...
...
@@ -116,7 +116,7 @@ export default function Wishlist() {
isError
=
{
message
.
error
}
message
=
{
message
.
message
}
/
>
<
Paper
sx
=
{{
p
:
1
,
overflowX
:
"scroll"
}}
>
<
Paper
className
=
"shadow-none"
sx
=
{{
p
:
2
,
overflowX
:
"scroll"
}}
>
{
wishlist
.
value
.
length
>
0
?
(
<
Table
>
<
TableHead
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment