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
7f758c97
Commit
7f758c97
authored
Oct 10, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpated the credentials value based on type sc or gc
parent
f75f34c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
PrimaryMenu.tsx
src/components/organism/Sidebar/UserSidebar/PrimaryMenu.tsx
+2
-2
CredentialsCard.tsx
...shboard/userDashboard/gameCredentials/CredentialsCard.tsx
+4
-1
No files found.
src/components/organism/Sidebar/UserSidebar/PrimaryMenu.tsx
View file @
7f758c97
...
...
@@ -12,7 +12,7 @@ export default function PrimaryMenu() {
return
(
<
List
>
{
data
?
data
?.
data
?.
map
((
menu
:
any
)
=>
(
<
ListItem
key=
{
menu
.
name
}
>
<
ListItem
key=
{
menu
?
.
name
}
>
{
/* <ListItemButton component="a" href={menu.slug ? `/general/${menu.slug}` : "#"}>
<ListItemIcon>
<ReceiptEdit size={18} />
...
...
@@ -23,7 +23,7 @@ export default function PrimaryMenu() {
<
ListItemIcon
>
<
ReceiptEdit
size=
{
18
}
/>
</
ListItemIcon
>
<
ListItemText
primary=
{
menu
.
name
}
/>
<
ListItemText
primary=
{
menu
?
.
name
}
/>
</
Link
>
</
ListItem
>
))
...
...
src/components/pages/dashboard/userDashboard/gameCredentials/CredentialsCard.tsx
View file @
7f758c97
...
...
@@ -15,6 +15,8 @@ export default function CredentialsCard({ cred, balance }: { cred: CredentialsPr
const
scValue
=
currentBalance
?.
type
===
"sc"
?
currentBalance
.
balance
??
0
:
null
;
const
gcValue
=
currentBalance
?.
type
===
"gc"
?
currentBalance
.
balance
??
0
:
null
;
return
(
<
Box
sx=
{
{
borderRadius
:
"24px"
,
...
...
@@ -25,7 +27,8 @@ export default function CredentialsCard({ cred, balance }: { cred: CredentialsPr
<
div
className=
"game__detail"
>
<
strong
className=
'block text-[16px] text-white'
>
{
cred
.
full_name
}
</
strong
>
<
p
className=
"text-[14px] my-[6px] uppercase"
>
{
currentBalance
.
type
}
:
{
scValue
!==
null
?
scValue
:
"N/A"
}
{
currentBalance
?.
type
===
"sc"
&&
`sc: ${scValue ?? "N/A"}`
}
{
currentBalance
?.
type
===
"gc"
&&
`gc: ${gcValue ?? "N/A"}`
}
</
p
>
<
BalanceRefresh
label=
'Refresh Balance'
icon=
{
true
}
/>
...
...
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