diff --git a/src/app/player/[id]/page.tsx b/src/app/player/[id]/page.tsx index 1b2c166..3741d0a 100644 --- a/src/app/player/[id]/page.tsx +++ b/src/app/player/[id]/page.tsx @@ -6,14 +6,13 @@ import Container from "@/components/Container"; import Label from "@/components/Label"; import Pagination from "@/components/Pagination"; import PlayerChart from "@/components/PlayerChart"; -import ScoreStatLabel from "@/components/ScoreStatLabel"; +import Score from "@/components/Score"; import { Spinner } from "@/components/Spinner"; import { ScoresaberPlayer } from "@/schemas/scoresaber/player"; import { ScoresaberPlayerScore } from "@/schemas/scoresaber/playerScore"; import { formatNumber } from "@/utils/number"; import { fetchScores, getPlayerInfo } from "@/utils/scoresaber/api"; import { GlobeAsiaAustraliaIcon } from "@heroicons/react/20/solid"; -import moment from "moment"; import Image from "next/image"; import { useCallback, useEffect, useState } from "react"; import ReactCountryFlag from "react-country-flag"; @@ -207,62 +206,7 @@ export default function Player({ params }: { params: { id: string } }) { const { score, leaderboard } = scoreData; return ( -
#{score.rank}
-- {moment(score.timeSet).fromNow()} -
-{leaderboard.songName}
-- {leaderboard.songAuthorName}{" "} - - {leaderboard.levelAuthorName} - -
-#{score.rank}
-#{score.rank}
++ {moment(score.timeSet).fromNow()} +
+{leaderboard.songName}
++ {leaderboard.songAuthorName}{" "} + {leaderboard.levelAuthorName} +
+#{score.rank}
+