Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
976b3997
Commit
976b3997
authored
Oct 27, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced balance with available at withdrawl
parent
87a34838
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
index.tsx
...mponents/pages/dashboard/adminDashboard/players/index.tsx
+1
-0
TransactionTable.tsx
...dashboard/adminDashboard/transaction/TransactionTable.tsx
+1
-0
index.tsx
...ponents/pages/dashboard/userDashboard/withdrawl/index.tsx
+3
-3
downloadApi.ts
src/services/downloadApi.ts
+5
-3
No files found.
src/components/pages/dashboard/adminDashboard/players/index.tsx
View file @
976b3997
...
...
@@ -231,6 +231,7 @@ export default function PlayerListing() {
try
{
const
res
=
await
downloadUser
({
search
,
status
:
currentTab
}).
unwrap
();
const
blob
=
new
Blob
([
res
],
{
type
:
"text/csv"
});
...
...
src/components/pages/dashboard/adminDashboard/transaction/TransactionTable.tsx
View file @
976b3997
...
...
@@ -195,6 +195,7 @@ export default function TransactionTable({ user_id, game_id, search, setSearch }
user
:
user_id
?.
toString
(),
game
:
game_id
?.
toString
(),
search
,
status
}).
unwrap
();
const
blob
=
new
Blob
([
res
],
{
type
:
"text/csv"
});
...
...
src/components/pages/dashboard/userDashboard/withdrawl/index.tsx
View file @
976b3997
...
...
@@ -136,7 +136,7 @@ export default function WithdrawlPage({
.
map
((
game
)
=>
{
const
info
=
gameInfo
[
game
.
provider
.
toLowerCase
()]
||
{
balanc
e
:
0
,
availabl
e
:
0
,
type
:
"sc"
,
};
...
...
@@ -166,7 +166,7 @@ export default function WithdrawlPage({
{
game
?.
name
}
</
strong
>
<
span
className=
"text-[12px] font-[600]"
>
{
info
.
balanc
e
}
{
info
.
availabl
e
}
</
span
>
</
div
>
</
div
>
...
...
@@ -214,7 +214,7 @@ export default function WithdrawlPage({
onClick=
{
()
=>
handleWithdrawlChange
(
game
.
provider
,
info
.
balanc
e
.
toString
()
info
.
availabl
e
.
toString
()
)
}
type=
"button"
...
...
src/services/downloadApi.ts
View file @
976b3997
...
...
@@ -34,12 +34,13 @@ export const downloadApi = createApi({
baseQuery
:
baseQuery
,
tagTypes
:
[
"Download"
],
endpoints
:
(
builder
)
=>
({
downloadTransaction
:
builder
.
mutation
<
Blob
,
{
user
?:
string
;
game
?:
string
;
search
?:
string
}
>
({
downloadTransaction
:
builder
.
mutation
<
Blob
,
{
user
?:
string
;
game
?:
string
;
search
?:
string
;
status
?:
string
}
>
({
async
queryFn
(
args
,
_queryApi
,
_extraOptions
,
fetchWithBQ
)
{
const
params
=
new
URLSearchParams
();
if
(
args
.
user
)
params
.
append
(
"user"
,
args
.
user
.
toString
());
if
(
args
.
game
)
params
.
append
(
"game"
,
args
.
game
.
toString
());
if
(
args
.
search
)
params
.
append
(
"search"
,
args
.
search
.
toString
());
if
(
args
.
status
)
params
.
append
(
"status"
,
args
.
status
.
toString
());
const
queryString
=
params
.
toString
();
const
response
=
await
fetchWithBQ
({
...
...
@@ -52,10 +53,11 @@ export const downloadApi = createApi({
return
{
data
:
response
.
data
as
Blob
};
},
}),
downloadUser
:
builder
.
mutation
<
Blob
,
{
search
?:
string
}
>
({
downloadUser
:
builder
.
mutation
<
Blob
,
{
search
?:
string
;
status
?:
string
}
>
({
async
queryFn
(
args
,
_queryApi
,
_extraOptions
,
fetchWithBQ
)
{
const
params
=
new
URLSearchParams
();
if
(
args
.
search
)
params
.
append
(
"search"
,
args
.
search
.
toString
());
if
(
args
.
status
)
params
.
append
(
"status"
,
args
.
status
.
toString
());
const
queryString
=
params
.
toString
();
const
response
=
await
fetchWithBQ
({
...
...
@@ -71,4 +73,4 @@ export const downloadApi = createApi({
}),
});
export
const
{
useDownloadTransactionMutation
,
useDownloadUserMutation
}
=
downloadApi
;
export
const
{
useDownloadTransactionMutation
,
useDownloadUserMutation
}
=
downloadApi
;
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