Skip to content

Commit 68b6a61

Browse files
author
Gerome El-assaad
committed
fixed build errors
1 parent b0c16e2 commit 68b6a61

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

app/settings/billing/page.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
ArrowUp,
2424
ExternalLink
2525
} from 'lucide-react'
26-
import { useState, useEffect } from 'react'
26+
import { useState, useEffect, Suspense } from 'react'
2727
import { useAuth } from '@/lib/auth'
2828
import { useFeatureFlag, useFeatureValue } from '@/hooks/use-edge-flags'
2929
import ErrorBoundary, { SettingsSection } from '@/components/error-boundary'
@@ -49,7 +49,7 @@ interface BillingData {
4949
}>
5050
}
5151

52-
export default function BillingSettings() {
52+
function BillingSettingsContent() {
5353
const { session, userTeam } = useAuth(() => {}, () => {})
5454
const { toast } = useToast()
5555
const searchParams = useSearchParams()
@@ -425,4 +425,16 @@ export default function BillingSettings() {
425425
</ErrorBoundary>
426426
</div>
427427
)
428+
}
429+
430+
export default function BillingSettings() {
431+
return (
432+
<Suspense fallback={
433+
<div className="flex items-center justify-center p-8">
434+
<Loader2 className="h-8 w-8 animate-spin" />
435+
</div>
436+
}>
437+
<BillingSettingsContent />
438+
</Suspense>
439+
)
428440
}

0 commit comments

Comments
 (0)