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
71fb36ac
Commit
71fb36ac
authored
Mar 13, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the minor changes
parent
7c139a43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
page.tsx
...)/(user)/(privateUser)/buy-coins/[slug]/tryspeed/page.tsx
+5
-15
No files found.
src/app/(dashboard)/(user)/(privateUser)/buy-coins/[slug]/tryspeed/page.tsx
View file @
71fb36ac
"use client"
import
{
redirect
}
from
"next/navigation"
;
import
{
useParams
,
useRouter
}
from
"next/navigation"
;
import
{
useEffect
}
from
"react"
;
export
default
async
function
Page
(
props
:
{
params
:
Promise
<
{
slug
:
string
}
>
})
{
const
{
slug
}
=
await
props
.
params
;
export
default
function
TryspeedRoot
()
{
const
{
slug
}
=
useParams
();
const
router
=
useRouter
();
useEffect
(()
=>
{
if
(
slug
)
{
console
.
log
(
slug
);
router
.
replace
(
`/buy-coins/
${
slug
}
/success`
);
}
},
[
slug
,
router
]);
return
null
;
return
redirect
(
`/buy-coins/
${
slug
}
/success`
);
}
\ No newline at end of file
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