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
27eeae72
Commit
27eeae72
authored
Oct 17, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the gold coins visibility at game detail
parent
bd1b5dd7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
UserCoin.tsx
...ard/games/exclusiveGames/exclusiveGameDetail/UserCoin.tsx
+5
-3
index.tsx
...hboard/games/exclusiveGames/exclusiveGameDetail/index.tsx
+2
-1
userApi.ts
src/services/userApi.ts
+1
-1
No files found.
src/components/pages/dashboard/userDashboard/games/exclusiveGames/exclusiveGameDetail/UserCoin.tsx
View file @
27eeae72
"use client"
import
GoldCoinIcon
from
'@/icons/GoldCoinIcon'
import
SilverCoinIcon
from
'@/icons/SilverCoinIcon'
import
{
useGetUserBalanceBySlugQuery
}
from
'@/services/userApi'
import
{
Box
}
from
'@mui/material'
...
...
@@ -7,15 +8,16 @@ import React from 'react'
export
default
function
UserCoin
({
slug
}:
{
slug
:
string
})
{
const
{
data
}
=
useGetUserBalanceBySlugQuery
({
slug
});
return
(
<
Box
sx=
{
{
background
:
"linear-gradient(0deg, rgba(234, 47, 231, 0.10) 0%, rgba(234, 47, 231, 0.10) 100%)"
,
borderRadius
:
"16px"
}
}
className=
"flex justify-center items-center gap-2 py-4 px-6 glass "
>
<
SilverCoinIcon
/>
{
slug
===
"goldcoincity"
?
<
GoldCoinIcon
/>
:
<
SilverCoinIcon
/>
}
<
div
className=
"coins"
>
<
strong
className=
"text-[16px] leading-4 font-[600] block mb-1"
>
{
data
?.
balance
||
0
}
</
strong
>
<
span
className=
"text-[12px] block"
>
Current Sweep Coins
</
span
>
<
strong
className=
"text-[16px] leading-4 font-[600] block mb-1"
>
{
data
?.
data
?.
balance
||
0
}
</
strong
>
<
span
className=
"text-[12px] block"
>
{
slug
===
"goldcoincity"
?
"Gold Coins"
:
"Current Sweep Coins"
}
</
span
>
</
div
>
</
Box
>
)
...
...
src/components/pages/dashboard/userDashboard/games/exclusiveGames/exclusiveGameDetail/index.tsx
View file @
27eeae72
...
...
@@ -41,6 +41,7 @@ export default function ExclusiveGameDetail({ game }: { game: SingleGameResponse
<
UserCoin
slug=
{
game
?.
data
?.
provider
}
/>
{
game
?.
data
?.
provider
==
"goldcoincity"
?
""
:
<
Box
sx=
{
{
borderRadius
:
"16px"
}
}
className=
"flex justify-center items-center gap-2 py-4 px-6 bg-secondary-grad text-title ss-btn"
>
...
...
@@ -49,7 +50,7 @@ export default function ExclusiveGameDetail({ game }: { game: SingleGameResponse
<
strong
className=
"text-[16px] leading-4 font-[600] block mb-1"
>
+ Deposit Coins
</
strong
>
</
Link
>
</
div
>
</
Box
>
</
Box
>
}
{
game
?.
data
?.
provider
==
"goldcoincity"
?
""
:
<
Box
sx=
{
{
borderRadius
:
"16px"
}
}
className=
"flex justify-center items-center gap-2 py-4 px-6 border border-secondary ss-btn"
>
...
...
src/services/userApi.ts
View file @
27eeae72
...
...
@@ -33,7 +33,7 @@ export const userApi = createApi({
}),
providesTags
:
[
'user'
]
}),
getUserBalanceBySlug
:
builder
.
query
<
{
provider
:
string
;
balance
:
number
,
flag
:
string
},
{
slug
:
string
}
>
({
getUserBalanceBySlug
:
builder
.
query
<
{
data
:
{
provider
:
string
;
balance
:
number
,
flag
:
string
}
},
{
slug
:
string
}
>
({
query
:
({
slug
})
=>
({
url
:
`/api/balance/
${
slug
}
`
,
method
:
"GET"
...
...
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