Skip to content

Commit

Permalink
wrap leaderboard in suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
encryptedDegen committed Feb 19, 2025
1 parent 8592e84 commit 02ea335
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/leaderboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Image from 'next/image'
import CloudLeft from 'public/assets/art/cloud-left.png'
import CloudMiddle from 'public/assets/art/cloud-middle.png'
import CloudRight from 'public/assets/art/cloud-right.png'
import { Suspense } from 'react'

export const metadata: Metadata = {
title: 'Leaderboard | EFP',
Expand Down Expand Up @@ -37,7 +38,9 @@ const Leaderboard = () => {
/>
<Image src={CloudRight} alt='Cloud Right' width={260} height={200} className='-translate-y-2 dark:opacity-40' />
</div>
<LeaderboardTable />
<Suspense>
<LeaderboardTable />
</Suspense>
</main>
)
}
Expand Down

0 comments on commit 02ea335

Please sign in to comment.