Skip to content

Commit

Permalink
dev: remove controls if server unresponsive
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushtom committed Nov 6, 2023
1 parent 5fac141 commit 880a719
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions pages/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -474,25 +474,27 @@ export default function Leaderboard() {
) : null}
<Divider />
{ranking ? (
<Rankings
data={ranking}
paginationLoading={paginationLoading}
setPaginationLoading={setPaginationLoading}
/>
<>
<Rankings
data={ranking}
paginationLoading={paginationLoading}
setPaginationLoading={setPaginationLoading}
/>
<ControlsDashboard
ranking={ranking}
handlePagination={handlePagination}
leaderboardToppers={leaderboardToppers}
rowsPerPage={rowsPerPage}
setRowsPerPage={setRowsPerPage}
duration={duration}
/>
</>
) : (
<div className="flex justify-center items-center">
No results found!
</div>
)}

<ControlsDashboard
ranking={ranking}
handlePagination={handlePagination}
leaderboardToppers={leaderboardToppers}
rowsPerPage={rowsPerPage}
setRowsPerPage={setRowsPerPage}
duration={duration}
/>
<Divider />
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
{leaderboardToppers
Expand Down

0 comments on commit 880a719

Please sign in to comment.