Skip to content

Commit 4ecbe8f

Browse files
authored
Merge pull request #35 from opexdev/develop
Show withdraw req in dashboard
2 parents 3d1d249 + 529557f commit 4ecbe8f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/pages/Dashboard/Dashboard.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import React from "react";
22
import Loading from "../../components/Loading";
33
import ScrollBar from "../../components/ScrollBar";
4-
import {useGetUsersByGroup, useGetUsersList} from "../../query";
4+
import {useGetUsersByGroup, useGetUsersList, useGetWithdrawsReq} from "../../query";
55
import Chain from "./Chain/Chain";
66
import Token from "./Token/Token";
77
import BriefWallet from "./BriefWallet/BriefWallet";
88

99
const Dashboard = () => {
1010

1111
const {data: users} = useGetUsersList(1, 10)
12+
const {data: withdraws} = useGetWithdrawsReq("CREATED", 1, 500)
1213
const {data: kycReq} = useGetUsersByGroup("kyc-requested", 1, 10)
1314

1415
return <ScrollBar>
@@ -24,6 +25,16 @@ const Dashboard = () => {
2425
</div> : <Loading/>
2526
}
2627
</div>
28+
<div className="d-flex justify-content-center align-items-center primary-bg"
29+
style={{width: "30%", height: "20vh", borderRadius: "7px"}}>
30+
{withdraws !== null ?
31+
<div className="d-flex flex-column justify-content-center align-items-center"
32+
style={{height: "100%"}}>
33+
<h4 className="mb-2">Withdraws Req</h4>
34+
<span className="mt-2 text-info" style={{fontSize: "2rem"}}>{withdraws?.length || "-"}</span>
35+
</div> : <Loading/>
36+
}
37+
</div>
2738
<div className="d-flex justify-content-center align-items-center primary-bg"
2839
style={{width: "30%", height: "20vh", borderRadius: "7px"}}>
2940
{kycReq !== null ?

src/pages/Withdraws/WithdrawInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const WithdrawInfo = () => {
4949
className="col-8 secondary-bg p-3 d-flex justify-content-center align-items-center">{withdraw.uuid || "-"}</span>
5050
<span
5151
className="col-1 secondary-bg border-start border-dark border-dark d-flex justify-content-center align-items-center rounded-end"
52-
style={{cursor: "pointer"}} onClick={() => copyToClipboard(withdraw.ownerUuid)}>
52+
style={{cursor: "pointer"}} onClick={() => copyToClipboard(withdraw.uuid)}>
5353
<img className="col-4" src={toAbsoluteUrl("/media/img/copy-link.svg")}
5454
alt="copy"/>
5555
</span>

0 commit comments

Comments
 (0)