feat: implement loading state and error handling in PricingSection; add Suspense for async components in Pricing and Settings pages

This commit is contained in:
Usman Baig
2026-01-31 17:29:54 +01:00
parent 8550909047
commit f085c11ba3
5 changed files with 69 additions and 11 deletions

View File

@@ -1,4 +1,6 @@
import { Suspense } from 'react'
import ProfileSettings from '@/components/settings/ProfileSettings'
import CheckoutSuccessToast from '@/components/checkout/CheckoutSuccessToast'
export const metadata = {
title: 'Settings - Pulse',
@@ -8,6 +10,9 @@ export const metadata = {
export default function SettingsPage() {
return (
<div className="min-h-screen pt-12 pb-12 px-4 sm:px-6">
<Suspense fallback={null}>
<CheckoutSuccessToast />
</Suspense>
<ProfileSettings />
</div>
)