From f7c8234601e6cf3519ee1fb19ad586a1aa9d5e88 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 28 Jan 2023 16:40:11 +0000 Subject: [PATCH] update player info for showing currently used leaderboatd --- src/components/PlayerStats.js | 39 +++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/src/components/PlayerStats.js b/src/components/PlayerStats.js index fd9a505..ea77c12 100644 --- a/src/components/PlayerStats.js +++ b/src/components/PlayerStats.js @@ -5,6 +5,7 @@ import { usePlayerDataStore } from "../store/playerDataStore"; import Avatar from "./Avatar"; import { Loading } from "@nextui-org/react"; +import Image from "next/image"; import { useSongDataStore } from "../store/songDataStore"; import styles from "../styles/playerStats.module.css"; @@ -50,20 +51,36 @@ const PlayerStats = () => {
-

- {pp.toLocaleString("en-us", { - maximumFractionDigits: 2, - minimumFractionDigits: 2, - })} - pp{" "} - + +

- ({leaderboardType}) - -

+ {pp.toLocaleString("en-us", { + maximumFractionDigits: 2, + minimumFractionDigits: 2, + })} + pp{" "} +

+

# {globalPos.toLocaleString("en-us", {