feat: add loading state and full-page loader component; update payment page and application layout to improve user experience
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 7m23s

This commit is contained in:
2025-05-31 12:37:46 +05:00
parent c705addccc
commit bed426a6b4
14 changed files with 84 additions and 18 deletions

View File

@ -0,0 +1,8 @@
import FullPageLoader from '@/components/full-page-loader'
import React from 'react'
export default function Loading() {
return (
<FullPageLoader />
)
}

View File

@ -39,7 +39,9 @@ export default async function PaymentPage({
>
{payment?.paid ? "Paid" : "Pending"}
</Button>
<CancelPaymentButton paymentId={paymentId} />
{!payment.paid && (
<CancelPaymentButton paymentId={paymentId} />
)}
</div>
</div>