Skip to content

Commit

Permalink
Update GlobalLeaderboard.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
YoctoProductions committed Feb 13, 2025
1 parent 1db7edc commit 08fa350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/ui/GlobalLeaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import api from '../api';

import 'bootstrap/dist/js/bootstrap.bundle.min';
import './GlobalLeaderboard.scss';
import cosmetics from '../game/cosmetics.json';

const types: Record<string, string> = {
'kills': 'Kills',
Expand Down Expand Up @@ -128,6 +129,7 @@ export function GlobalLeaderboard() {
<div className="d-flex align-items-center">
<div className="user-info__basic">
<h5 className="mb-0">
<img src={'assets/game/player/'+Object.values(cosmetics.skins).find((skin: any) => skin.id === row.skins.equipped)?.bodyFileName}/>
<Link to={`/profile?username=${encodeURIComponent(row.username)}`} rel="noreferrer" style={{ color: 'black' }}>{row.username}</Link>
</h5>
</div>
Expand Down

0 comments on commit 08fa350

Please sign in to comment.