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
1 change: 0 additions & 1 deletion src/components/dashboard/LeaderBoard/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

// Users to exclude from the leaderboard
const EXCLUDED_USERS = [
"sanjay-kv",
"allcontributors",
"allcontributors[bot]",
"dependabot",
Expand Down Expand Up @@ -47,7 +46,7 @@
badges?: string[]; // Array of badge image paths
}

interface Stats {

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

View workflow job for this annotation

GitHub Actions / lint

'Stats' is defined but never used

Check warning on line 49 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 @@ -215,7 +214,7 @@
);
}

function TopPerformerCard({

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

View workflow job for this annotation

GitHub Actions / lint

'TopPerformerCard' is defined but never used

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

View workflow job for this annotation

GitHub Actions / lint

'TopPerformerCard' is defined but never used
contributor,
rank,
onPRClick,
Expand Down Expand Up @@ -361,7 +360,7 @@

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

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

View workflow job for this annotation

GitHub Actions / lint

'maxVisibleButtons' is assigned a value but never used

Check warning on line 363 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 Expand Up @@ -532,7 +531,7 @@
value={currentTimeFilter}
onChange={(e) => {
// Use setTimeFilter from context
setTimeFilter(e.target.value as any);

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

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

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

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
setCurrentPage(1);
setIsSelectChanged(true);
setTimeout(() => setIsSelectChanged(false), 1200);
Expand Down
Loading