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
0e9103b0
Commit
0e9103b0
authored
Oct 13, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the routes for withdrawl history and deposit history
parent
2b69f936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
page.tsx
src/app/(dashboard)/(user)/(privateUser)/account/page.tsx
+9
-0
No files found.
src/app/(dashboard)/(user)/(privateUser)/account/page.tsx
View file @
0e9103b0
...
@@ -6,10 +6,19 @@ import TabController from "@/components/molecules/TabController";
...
@@ -6,10 +6,19 @@ import TabController from "@/components/molecules/TabController";
import
{
Tab
}
from
"@mui/material"
;
import
{
Tab
}
from
"@mui/material"
;
import
WithdrawnHistoryPage
from
"@/components/pages/dashboard/userDashboard/withdrawlHistory"
;
import
WithdrawnHistoryPage
from
"@/components/pages/dashboard/userDashboard/withdrawlHistory"
;
import
DepositHistoryPage
from
"@/components/pages/dashboard/userDashboard/depositHistory"
;
import
DepositHistoryPage
from
"@/components/pages/dashboard/userDashboard/depositHistory"
;
import
{
useSearchParams
}
from
"next/navigation"
;
type
AccountTabProps
=
"account"
|
"deposit"
|
"withdraw"
type
AccountTabProps
=
"account"
|
"deposit"
|
"withdraw"
export
default
function
ProfilePage
()
{
export
default
function
ProfilePage
()
{
const
[
currentActiveTab
,
setCurrentActiveTab
]
=
React
.
useState
<
AccountTabProps
>
(
"account"
);
const
[
currentActiveTab
,
setCurrentActiveTab
]
=
React
.
useState
<
AccountTabProps
>
(
"account"
);
const
searchParams
=
useSearchParams
();
React
.
useEffect
(()
=>
{
const
page
=
searchParams
.
get
(
"page"
);
if
(
page
===
"deposit-history"
)
setCurrentActiveTab
(
"deposit"
);
else
if
(
page
===
"withdrawl-history"
)
setCurrentActiveTab
(
"withdraw"
);
else
setCurrentActiveTab
(
"account"
);
},
[
searchParams
]);
const
handleTabChange
=
(
tab
:
string
)
=>
{
const
handleTabChange
=
(
tab
:
string
)
=>
{
setCurrentActiveTab
(
tab
as
AccountTabProps
);
setCurrentActiveTab
(
tab
as
AccountTabProps
);
...
...
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