Skip to content

Commit

Permalink
fix: adds suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajpiar committed Nov 15, 2024
1 parent 9b6fa44 commit 45266c0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/user/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { MainContainer } from '@/components/MainContainer/MainContainer'
import { Tabs, TabsContent, TabsList, TabsTrigger, TabTitle } from '@/components/Tabs'
import { TxStatusMessage } from '@/components/TxStatusMessage'
import { useSearchParams } from 'next/navigation'
import { Suspense } from 'react'
import { zeroAddress } from 'viem'
import { useAccount } from 'wagmi'

Expand Down Expand Up @@ -46,7 +47,7 @@ const tabs: Tabs = {
},
}

export default function User() {
function User() {
const { address } = useAccount()
const { data: gauge, error } = useGetBuilderToGauge(address!)
const searchParams = useSearchParams()
Expand Down Expand Up @@ -80,3 +81,11 @@ export default function User() {
</MainContainer>
)
}

export default function UserPage() {
return (
<Suspense fallback={<div>Loading...</div>}>
<User />
</Suspense>
)
}

0 comments on commit 45266c0

Please sign in to comment.