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
e2043886
Commit
e2043886
authored
Sep 25, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the credentails sc and gc
parent
208b0661
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
CredentialsCard.tsx
...shboard/userDashboard/gameCredentials/CredentialsCard.tsx
+9
-2
index.tsx
...s/pages/dashboard/userDashboard/gameCredentials/index.tsx
+3
-2
No files found.
src/components/pages/dashboard/userDashboard/gameCredentials/CredentialsCard.tsx
View file @
e2043886
...
...
@@ -10,7 +10,11 @@ import { CardPasswordField } from './CardPasswordHandler'
import
CopyToClipboard
from
'./CopyToClipboard'
export
default
function
CredentialsCard
({
cred
}:
{
cred
:
CredentialsProps
})
{
export
default
function
CredentialsCard
({
cred
,
balance
}:
{
cred
:
CredentialsProps
;
balance
:
any
})
{
const
currentBalance
=
balance
?.
data
?.
game_information
?.[
cred
.
name
]
||
null
;
const
scValue
=
currentBalance
?.
type
===
"sc"
?
currentBalance
.
balance
??
0
:
null
;
return
(
<
Box
sx=
{
{
borderRadius
:
"24px"
,
...
...
@@ -20,7 +24,10 @@ export default function CredentialsCard({ cred }: { cred: CredentialsProps }) {
<
Image
src=
{
cred
?.
logo
||
"/assets/images/fallback.png"
}
alt=
{
cred
?.
full_name
}
className=
'rounded-full aspect-square'
width=
{
74
}
height=
{
74
}
/>
<
div
className=
"game__detail"
>
<
strong
className=
'block text-[16px] text-white'
>
{
cred
.
full_name
}
</
strong
>
<
p
className=
'text-[14px] my-[6px]'
>
SC: 59
</
p
>
<
p
className=
"text-[14px] my-[6px] uppercase"
>
{
currentBalance
.
type
}
:
{
scValue
!==
null
?
scValue
:
"N/A"
}
</
p
>
<
BalanceRefresh
label=
'Refresh Balance'
icon=
{
true
}
/>
</
div
>
</
div
>
...
...
src/components/pages/dashboard/userDashboard/gameCredentials/index.tsx
View file @
e2043886
import
React
from
'react'
import
CredentialsCard
from
'./CredentialsCard'
import
{
getUserGameCredentials
}
from
'@/serverApi/game'
;
import
{
getUserGame
Balance
,
getUserGame
Credentials
}
from
'@/serverApi/game'
;
export
default
async
function
GameCredentialsPage
()
{
const
creds
=
await
getUserGameCredentials
();
const
balance
=
await
getUserGameBalance
();
return
(
<
section
className=
"credentials__listing "
>
<
div
className=
"section__title mb-8 lg:max-w-[521px]"
>
...
...
@@ -15,7 +16,7 @@ export default async function GameCredentialsPage() {
{
creds
?.
data
.
length
?
creds
?.
data
.
map
((
cred
)
=>
(
<
div
className=
"col-span-1"
key=
{
cred
.
full_name
}
>
<
CredentialsCard
cred=
{
cred
}
/>
<
CredentialsCard
cred=
{
cred
}
balance=
{
balance
}
/>
</
div
>
))
:
""
}
</
div
>
...
...
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