11import React from "react" ;
22import Loading from "../../components/Loading" ;
33import ScrollBar from "../../components/ScrollBar" ;
4- import { useGetUsersByGroup , useGetUsersList } from "../../query" ;
4+ import { useGetUsersByGroup , useGetUsersList , useGetWithdrawsReq } from "../../query" ;
55import Chain from "./Chain/Chain" ;
66import Token from "./Token/Token" ;
77import BriefWallet from "./BriefWallet/BriefWallet" ;
88
99const 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 ?
0 commit comments