Commit 91966900 by Arjun Jhukal

minor chagnes

parent 36f39ed3
"use client"
import GlassWrapper from '@/components/molecules/GlassWrapper' import GlassWrapper from '@/components/molecules/GlassWrapper'
import Image from 'next/image' import Image from 'next/image'
import Link from 'next/link' 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 }> }) { if (!mounted) {
const { slug } = await params return null; // or a loading skeleton
}
const slug = params?.slug as string;
return ( return (
<GlassWrapper className="max-w-[520px] mx-auto flex flex-col gap-3 items-center text-center p-6"> <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 ...@@ -15,23 +28,18 @@ export default async function PaymentSuccess({ params }: { params: Promise<{ slu
width={180} width={180}
height={140} height={140}
/> />
<h1 className="text-[24px] lg:text-[32px] leading-[120%] font-bold mb-4 text-green-500"> <h1 className="text-[24px] lg:text-[32px] leading-[120%] font-bold mb-4 text-green-500">
Payment Successful 🎉 Payment Successful
</h1> </h1>
<p className="text-[14px] leading-[150%] font-normal lg:text-[16px] mb-4"> <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 Your payment was processed successfully.
page shortly.
</p> </p>
<Link <Link
href={`${process.env.NEXT_PUBLIC_FRONTEND_URL}/exclusive-games/${slug}`} href={`${process.env.NEXT_PUBLIC_FRONTEND_URL}/exclusive-games/${slug}`}
className="ss-btn bg-primary-grad" className="ss-btn bg-primary-grad"
> >
View Game Detail View Game Detail
</Link> </Link>
</GlassWrapper> </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