File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff 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'
2727import { useAuth } from '@/lib/auth'
2828import { useFeatureFlag , useFeatureValue } from '@/hooks/use-edge-flags'
2929import 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}
You can’t perform that action at this time.
0 commit comments