Skip to content

Commit

Permalink
vinvoor: give right leaderboard color
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Oct 10, 2024
1 parent 86f864f commit f5f4c2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vinvoor/src/leaderboard/LeaderboardTableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import {
Typography,
} from "@mui/material";
import { alpha, Theme, useTheme } from "@mui/material/styles";
import { useLeaderboardItems } from "../hooks/useLeaderboard";
import { useUser } from "../hooks/useUser";
import { TableHeadCell } from "../types/general";
import { leaderboardHeadCells, LeaderboardItem } from "../types/leaderboard";
import FirstPlaceIcon from "/first_place.svg";
import SecondPlaceIcon from "/second_place.svg";
import ThirdPlaceIcon from "/third_place.svg";
import { useLeaderboardItems } from "../hooks/useLeaderboard";
import { useUser } from "../hooks/useUser";

const leaderboardColors = [
(theme: Theme) => theme.leaderboard.first,
Expand Down Expand Up @@ -124,7 +124,7 @@ export const LeaderboardTableBody = () => {
theme.palette.action.activatedOpacity,
),
}),
...getLeaderboardColor(index, theme),
...getLeaderboardColor(row.position - 1, theme),
}}
>
{leaderboardHeadCells.map(headCell => (
Expand Down

0 comments on commit f5f4c2f

Please sign in to comment.