Skip to content

Commit 642d2a2

Browse files
refactor(web): juror-per-page-to-10
1 parent 1be7200 commit 642d2a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web/src/pages/Jurors/DisplayJurors.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { isUndefined } from "utils/index";
66
import { StandardPagination } from "@kleros/ui-components-library";
77

88
import { useJurorsByCoherenceScore } from "queries/useJurorsByCoherenceScore";
9-
import useIsDesktop from "hooks/useIsDesktop";
109

1110
import { OrderDirection } from "src/graphql/graphql";
1211

@@ -32,8 +31,7 @@ const DisplayJurors: React.FC<IDisplayJurors> = ({ totalLeaderboardJurors }) =>
3231
const scrollTop = useScrollTop();
3332
const { id: searchValue } = decodeURIFilter(filter ?? "all");
3433
const navigate = useNavigate();
35-
const isDesktop = useIsDesktop();
36-
const jurorsPerPage = isDesktop ? 20 : 10;
34+
const jurorsPerPage = 10;
3735
const currentPage = parseInt(page ?? "1");
3836
const jurorSkip = jurorsPerPage * (currentPage - 1);
3937
const { data: queryJurors } = useJurorsByCoherenceScore(

0 commit comments

Comments
 (0)