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
69826254
Commit
69826254
authored
Oct 05, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: show order;
parent
baaac0df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
Orders.js
src/components/dashboard/Orders.js
+7
-6
order.js
src/pages/admin/order.js
+7
-6
No files found.
src/components/dashboard/Orders.js
View file @
69826254
...
...
@@ -42,9 +42,9 @@ export default function Orders() {
<
TableRow
>
{[
"id"
,
"ราคาทั้งหมด"
,
"วันที่"
,
"ผู้ซื้อ"
,
"ราคาทั้งหมด"
,
"ค่าส่ง"
,
"ชำระเงิน"
,
].
map
((
label
,
idx
)
=>
(
...
...
@@ -58,11 +58,6 @@ export default function Orders() {
order
&&
(
<
TableRow
key
=
{
idx
}
>
<
TableCell
>
{
order
.
id
}
<
/TableCell
>
<
TableCell
>
<
Box
color
=
"orangered"
>
$
{
Number
(
order
.
total_price
).
toLocaleString
()}
<
/Box
>
<
/TableCell
>
<
TableCell
>
<
Link
href
=
{
"/admin/order/"
+
order
.
id
}
>
{
new
Date
(
order
.
date
).
toLocaleString
()}
...
...
@@ -74,6 +69,12 @@ export default function Orders() {
.
name
??
"undifined"
:
"undifined"
}
<
/TableCell
>
<
TableCell
>
<
Box
color
=
"orangered"
>
$
{
Number
(
order
.
total_price
).
toLocaleString
()}
<
/Box
>
<
/TableCell
>
<
TableCell
>
$
{
order
.
shipping_price
}
<
/TableCell
>
<
TableCell
>
<
Box
color
=
{
order
.
pay_status
?
"green"
:
"red"
}
>
...
...
src/pages/admin/order.js
View file @
69826254
...
...
@@ -78,9 +78,9 @@ export default function Order() {
<
TableRow
>
{[
"id"
,
"ราคาทั้งหมด"
,
"วันที่"
,
"ผู้ซื้อ"
,
"ราคาทั้งหมด"
,
"ค่าส่ง"
,
"ชำระเงิน"
,
"ที่อยู่"
,
...
...
@@ -96,11 +96,6 @@ export default function Order() {
order
&&
(
<
TableRow
key
=
{
idx
}
>
<
TableCell
>
{
order
.
id
}
<
/TableCell
>
<
TableCell
>
<
Box
color
=
"orangered"
>
$
{
Number
(
order
.
total_price
).
toLocaleString
()}
<
/Box
>
<
/TableCell
>
<
TableCell
>
<
Link
title
=
"คลิกเพื่อดูรายละเอียด"
...
...
@@ -116,6 +111,12 @@ export default function Order() {
)[
0
].
name
??
"undifined"
:
"undifined"
}
<
/TableCell
>
<
TableCell
>
<
Box
color
=
"orangered"
>
$
{
Number
(
order
.
total_price
).
toLocaleString
()}
<
/Box
>
<
/TableCell
>
<
TableCell
>
<
Box
color
=
"black"
>
$
{
order
.
shipping_price
}
<
/Box
>
<
/TableCell
>
...
...
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