Commit 91966900 by Arjun Jhukal

minor chagnes

parent 36f39ed3
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment