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
b0fff1c6
Commit
b0fff1c6
authored
Oct 07, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chage to view order in deposites
parent
da2d8128
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Deposits.js
src/components/dashboard/Deposits.js
+5
-5
No files found.
src/components/dashboard/Deposits.js
View file @
b0fff1c6
import
*
as
React
from
"react"
;
import
*
as
React
from
"react"
;
import
Link
from
"
@mui/material/L
ink"
;
import
Link
from
"
next/l
ink"
;
import
Typography
from
"@mui/material/Typography"
;
import
Typography
from
"@mui/material/Typography"
;
import
Title
from
"./Title"
;
import
Title
from
"./Title"
;
import
{
AdminOrderContext
}
from
"../layout/AdminLayout"
;
import
{
AdminOrderContext
}
from
"../layout/AdminLayout"
;
...
@@ -30,8 +30,8 @@ export default function Deposits() {
...
@@ -30,8 +30,8 @@ export default function Deposits() {
total
+=
Number
(
adminOrder
.
value
[
i
].
total_price
);
total
+=
Number
(
adminOrder
.
value
[
i
].
total_price
);
}
}
}
}
setMonth
(
month_now
)
setMonth
(
month_now
)
;
setYear
(
year_now
)
setYear
(
year_now
)
;
setTotalSelling
(
total
);
setTotalSelling
(
total
);
},
[
user
,
adminOrder
]);
},
[
user
,
adminOrder
]);
...
@@ -45,8 +45,8 @@ export default function Deposits() {
...
@@ -45,8 +45,8 @@ export default function Deposits() {
on
{
month
},
{
year
}
on
{
month
},
{
year
}
<
/Typography
>
<
/Typography
>
<
div
>
<
div
>
<
Link
c
olor
=
"primary"
href
=
"#"
onClick
=
{
preventDefault
}
>
<
Link
c
lassName
=
"text-blue-600"
href
=
"/admin/order"
>
View
balance
View
orders
<
/Link
>
<
/Link
>
<
/div
>
<
/div
>
<
/React.Fragment
>
<
/React.Fragment
>
...
...
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