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
b506f86a
Commit
b506f86a
authored
Oct 16, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the minor changes
parent
28e5e706
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
AccountTab.tsx
...p/(dashboard)/(user)/(privateUser)/account/AccountTab.tsx
+3
-1
TabController.tsx
src/components/molecules/TabController.tsx
+5
-2
No files found.
src/app/(dashboard)/(user)/(privateUser)/account/AccountTab.tsx
View file @
b506f86a
...
...
@@ -22,7 +22,7 @@ export default function AccountTab() {
const
renderTabContent
=
()
=>
{
switch
(
currentActiveTab
)
{
case
"account_detail"
:
return
<
EditUserProfile
id=
{
user
?.
id
as
string
|
""
}
buttonLabel=
"Update"
/>;
return
<
EditUserProfile
id=
{
user
?.
id
as
string
|
""
}
buttonLabel=
"Update"
/>;
case
"wallet_information"
:
return
<
EditUserWallet
/>;
case
"change_password"
:
...
...
@@ -38,6 +38,7 @@ export default function AccountTab() {
<
UserProfileCard
balance=
{
data
}
loading=
{
isLoading
}
/>
</
div
>
<
GlassWrapper
className=
"col-span-12 lg:col-span-7"
>
<
div
className=
"p-6 lg:p-0"
>
<
TabController
links=
{
[
{
value
:
"account_detail"
,
label
:
"Account Details"
},
{
value
:
"wallet_information"
,
label
:
"Wallet Information"
},
...
...
@@ -45,6 +46,7 @@ export default function AccountTab() {
]
}
currentTab=
{
currentActiveTab
}
onTabChange=
{
handleTabChange
}
controllerClassName=
' px-4 lg:px-8 lg:pt-8 !mb-0'
/>
</
div
>
{
renderTabContent
()
}
</
GlassWrapper
>
</
div
>
...
...
src/components/molecules/TabController.tsx
View file @
b506f86a
...
...
@@ -67,7 +67,7 @@ export default function TabController({
{
/* Mobile Tabs as Popper */
}
<
Box
className=
"flex md:hidden mb-4"
>
<
Button
ref=
{
anchorRef
}
onClick=
{
handleToggle
}
c
olor=
"primary"
className=
"!justify-between !p-2 !border !border-solid !border-gray-600 !rounded-lg
"
endIcon=
{
<
ArrowDown2
size=
{
20
}
/>
}
>
<
Button
ref=
{
anchorRef
}
onClick=
{
handleToggle
}
c
lassName=
"!justify-between !p-2 !border !border-solid !border-gray-600 !rounded-lg !text-white !bg-primary
"
endIcon=
{
<
ArrowDown2
size=
{
20
}
/>
}
>
<
Typography
className=
"flex gap-4"
>
{
currentTabIcon
}
{
currentTabLabel
}
</
Typography
>
...
...
@@ -77,7 +77,10 @@ export default function TabController({
anchorEl=
{
anchorRef
.
current
}
placement=
"bottom-start"
transition
style=
{
{
zIndex
:
1300
}
}
style=
{
{
zIndex
:
1300
,
width
:
anchorRef
.
current
?
anchorRef
.
current
.
offsetWidth
:
'auto'
}
}
>
{
({
TransitionProps
})
=>
(
<
Fade
{
...
TransitionProps
}
timeout=
{
300
}
>
...
...
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