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
5a71dfde
Commit
5a71dfde
authored
Oct 07, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: side on mobile screen;
parent
2d4c59fc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
Footer.js
src/components/Footer.js
+2
-4
[id].js
src/pages/admin/order/[id].js
+2
-2
order.js
src/pages/order.js
+2
-2
[id].js
src/pages/order/[id].js
+7
-4
No files found.
src/components/Footer.js
View file @
5a71dfde
...
...
@@ -5,15 +5,13 @@ import React from "react";
export
default
function
Footer
()
{
return
(
<
Box
className
=
"md:flex text-center justify-end items-center"
sx
=
{{
p
:
3
,
display
:
"flex"
,
justifyContent
:
"end"
,
alignItems
:
"center"
,
}}
>
<
a
className
=
"flex items-center text-slate-800 font-medium no-underline hover:underline md:mx-5"
className
=
"flex items-center
justify-center my-3
text-slate-800 font-medium no-underline hover:underline md:mx-5"
href
=
"https://github.com/nawasan111/final-exam"
>
<
GitHub
sx
=
{{
mx
:
1
}}
/> Source cod
e
...
...
src/pages/admin/order/[id].js
View file @
5a71dfde
...
...
@@ -73,7 +73,7 @@ export default function AdminOrderDetail() {
<
/Button
>
<
/Link
>
<
/Box
>
<
Paper
sx
=
{{
p
:
1
}}
>
<
Paper
sx
=
{{
p
:
1
,
overflowX
:
"scroll"
}}
>
<
Table
>
<
TableHead
>
<
TableRow
>
...
...
@@ -100,7 +100,7 @@ export default function AdminOrderDetail() {
alt
=
"รูปสินค้า"
/>
<
/TableCell
>
<
TableCell
>
{
pdt
.
name
}
<
/TableCell
>
<
TableCell
sx
=
{{
minWidth
:
70
}}
>
{
pdt
.
name
}
<
/TableCell
>
<
TableCell
>
<
div
className
=
"max-h-10 overflow-scroll"
>
{
pdt
.
detail
}
...
...
src/pages/order.js
View file @
5a71dfde
...
...
@@ -120,7 +120,7 @@ export default function Order() {
<
/TableCell
>
<
TableCell
>
{
order
.
product_count
}
<
/TableCell
>
<
TableCell
>
$
{
order
.
shipping_price
}
<
/TableCell
>
<
TableCell
>
<
TableCell
sx
=
{{
minWidth
:
70
}}
>
<
Box
color
=
{
order
.
pay_status
?
"green"
:
"red"
}
>
{
order
.
pay_status
?
(
"ชำระเงินแล้ว"
...
...
@@ -139,7 +139,7 @@ export default function Order() {
)}
<
/Box
>
<
/TableCell
>
<
TableCell
>
<
TableCell
sx
=
{{
minWidth
:
70
}}
>
{
order
.
send_status
==
0
?
(
<
Box
color
=
"gray"
>
{
order
.
send_status
...
...
src/pages/order/[id].js
View file @
5a71dfde
...
...
@@ -31,9 +31,12 @@ export default function OrderDetail() {
const
fetchOrderDetail
=
async
()
=>
{
if
(
!
user
.
value
?.
token
)
return
;
try
{
let
response
=
await
axios
.
get
(
"/api/u/order/detail?id="
+
router
.
query
.
id
,
{
let
response
=
await
axios
.
get
(
"/api/u/order/detail?id="
+
router
.
query
.
id
,
{
headers
:
{
token
:
user
.
value
.
token
},
});
}
);
setOrderDetailList
(
response
.
data
);
}
catch
(
err
)
{
console
.
log
(
err
);
...
...
@@ -69,7 +72,7 @@ export default function OrderDetail() {
<
/Button
>
<
/Link
>
<
/Box
>
<
Paper
sx
=
{{
p
:
1
}}
>
<
Paper
sx
=
{{
p
:
1
,
overflowX
:
"scroll"
}}
>
<
Table
>
<
TableHead
>
<
TableRow
>
...
...
@@ -96,7 +99,7 @@ export default function OrderDetail() {
alt
=
"รูปสินค้า"
/>
<
/TableCell
>
<
TableCell
>
{
pdt
.
name
}
<
/TableCell
>
<
TableCell
sx
=
{{
minWidth
:
70
}}
>
{
pdt
.
name
}
<
/TableCell
>
<
TableCell
>
<
div
className
=
"max-h-10 overflow-scroll"
>
{
pdt
.
detail
}
...
...
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