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
91966900
Commit
91966900
authored
Mar 12, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor chagnes
parent
36f39ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
page.tsx
...d)/(user)/(privateUser)/buy-coins/[slug]/success/page.tsx
+20
-11
No files found.
src/app/(dashboard)/(user)/(privateUser)/buy-coins/[slug]/success/page.tsx
View file @
91966900
"use client"
import
GlassWrapper
from
'@/components/molecules/GlassWrapper'
import
Image
from
'next/image'
import
Link
from
'next/link'
import
React
from
'react'
import
{
useParams
}
from
'next/navigation'
import
{
useEffect
,
useState
}
from
'react'
export
default
function
PaymentSuccess
()
{
const
params
=
useParams
();
const
[
mounted
,
setMounted
]
=
useState
(
false
);
useEffect
(()
=>
{
setMounted
(
true
);
},
[]);
export
default
async
function
PaymentSuccess
({
params
}:
{
params
:
Promise
<
{
slug
:
number
}
>
})
{
const
{
slug
}
=
await
params
if
(
!
mounted
)
{
return
null
;
// or a loading skeleton
}
const
slug
=
params
?.
slug
as
string
;
return
(
<
GlassWrapper
className=
"max-w-[520px] mx-auto flex flex-col gap-3 items-center text-center p-6"
>
...
...
@@ -15,23 +28,18 @@ export default async function PaymentSuccess({ params }: { params: Promise<{ slu
width=
{
180
}
height=
{
140
}
/>
<
h1
className=
"text-[24px] lg:text-[32px] leading-[120%] font-bold mb-4 text-green-500"
>
Payment Successful
🎉
Payment Successful
</
h1
>
<
p
className=
"text-[14px] leading-[150%] font-normal lg:text-[16px] mb-4"
>
Your payment was processed successfully. You’ll be redirected to the game
page shortly.
Your payment was processed successfully.
</
p
>
<
Link
href=
{
`${process.env.NEXT_PUBLIC_FRONTEND_URL}/exclusive-games/${slug}`
}
className=
"ss-btn bg-primary-grad"
>
View Game Detail
</
Link
>
</
GlassWrapper
>
)
}
}
\ 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