Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/dashboard/LeaderBoard/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
prDetails?: PRDetails[];
}

interface Stats {

Check warning on line 34 in src/components/dashboard/LeaderBoard/leaderboard.tsx

View workflow job for this annotation

GitHub Actions / lint

'Stats' is defined but never used
flooredTotalPRs: number;
totalContributors: number;
flooredTotalPoints: number;
Expand Down Expand Up @@ -155,7 +155,7 @@
useState<Contributor | null>(null);
const [isModalOpen, setIsModalOpen] = useState(false);
const [isSelectChanged, setIsSelectChanged] = useState(false);
const itemsPerPage = 10;
const itemsPerPage = 20;

// Modal handlers
const handlePRClick = (contributor: Contributor) => {
Expand Down Expand Up @@ -199,7 +199,7 @@

const renderPaginationButtons = () => {
const pages = [];
const maxVisibleButtons = 5; // Maximum number of page buttons to show directly

Check warning on line 202 in src/components/dashboard/LeaderBoard/leaderboard.tsx

View workflow job for this annotation

GitHub Actions / lint

'maxVisibleButtons' is assigned a value but never used

// Special case: if we have 7 or fewer pages, show all of them without ellipsis
if (totalPages <= 7) {
Expand Down
Loading