hide leaderboard pp on unranked maps
This commit is contained in:
parent
336518ff70
commit
d1a9654e33
@ -128,7 +128,7 @@ export class ImageService {
|
|||||||
|
|
||||||
{/* Player PP */}
|
{/* Player PP */}
|
||||||
<div tw="flex justify-center items-center text-[33px]">
|
<div tw="flex justify-center items-center text-[33px]">
|
||||||
<p tw="text-[#606fff] m-0">{formatPp(player.pp)}pp</p>
|
<p tw="text-[#4858ff] m-0">{formatPp(player.pp)}pp</p>
|
||||||
{this.renderDailyChange(ppChange)}
|
{this.renderDailyChange(ppChange)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ export default function LeaderboardScore({ score, claimedPlayer }: Props) {
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
{/* Score PP */}
|
{/* Score PP */}
|
||||||
<td className="px-4 py-2 text-center text-pp whitespace-nowrap">{formatPp(score.pp)}pp</td>
|
{score.pp > 0 && <td className="px-4 py-2 text-center text-pp whitespace-nowrap">{formatPp(score.pp)}pp</td>}
|
||||||
|
|
||||||
{/* Score Modifiers */}
|
{/* Score Modifiers */}
|
||||||
<td className="px-4 py-2 text-center whitespace-nowrap">
|
<td className="px-4 py-2 text-center whitespace-nowrap">
|
||||||
|
@ -179,7 +179,7 @@ export default function LeaderboardScores({
|
|||||||
<th className="px-2 py-1 text-center">Score</th>
|
<th className="px-2 py-1 text-center">Score</th>
|
||||||
<th className="px-2 py-1 text-center">Accuracy</th>
|
<th className="px-2 py-1 text-center">Accuracy</th>
|
||||||
<th className="px-2 py-1 text-center">Misses</th>
|
<th className="px-2 py-1 text-center">Misses</th>
|
||||||
<th className="px-2 py-1 text-center">PP</th>
|
{leaderboard.stars > 0 && <th className="px-2 py-1 text-center">PP</th>}
|
||||||
<th className="px-2 py-1 text-center">Mods</th>
|
<th className="px-2 py-1 text-center">Mods</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -15,7 +15,7 @@ const datasetConfig: DatasetConfig[] = [
|
|||||||
{
|
{
|
||||||
title: "Average Ranked Accuracy",
|
title: "Average Ranked Accuracy",
|
||||||
field: "accuracy.averageRankedAccuracy",
|
field: "accuracy.averageRankedAccuracy",
|
||||||
color: "#606fff",
|
color: "#4858ff",
|
||||||
axisId: "y",
|
axisId: "y",
|
||||||
axisConfig: {
|
axisConfig: {
|
||||||
reverse: false,
|
reverse: false,
|
||||||
|
@ -41,7 +41,7 @@ const datasetConfig: DatasetConfig[] = [
|
|||||||
{
|
{
|
||||||
title: "PP",
|
title: "PP",
|
||||||
field: "pp",
|
field: "pp",
|
||||||
color: "#606fff",
|
color: "#4858ff",
|
||||||
axisId: "y2",
|
axisId: "y2",
|
||||||
axisConfig: {
|
axisConfig: {
|
||||||
reverse: false,
|
reverse: false,
|
||||||
|
@ -3,11 +3,27 @@ import Tooltip from "@/components/tooltip";
|
|||||||
import { formatNumberWithCommas } from "@ssr/common/utils/number-utils";
|
import { formatNumberWithCommas } from "@ssr/common/utils/number-utils";
|
||||||
import { PlayerStatValue } from "@ssr/common/player/player-stat";
|
import { PlayerStatValue } from "@ssr/common/player/player-stat";
|
||||||
|
|
||||||
// Props for DailyChangeComponent
|
|
||||||
interface DailyChangeProps {
|
interface DailyChangeProps {
|
||||||
|
/**
|
||||||
|
* The type of change
|
||||||
|
*/
|
||||||
type: PlayerStatValue;
|
type: PlayerStatValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value of the change
|
||||||
|
*/
|
||||||
change: number | undefined;
|
change: number | undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The tooltip to display
|
||||||
|
*/
|
||||||
tooltip?: React.ReactElement | string;
|
tooltip?: React.ReactElement | string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The formater for the change
|
||||||
|
*
|
||||||
|
* @param value
|
||||||
|
*/
|
||||||
format?: (value: number) => string;
|
format?: (value: number) => string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ const config: Config = {
|
|||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
pp: "#606fff",
|
pp: "#4858ff",
|
||||||
background: "hsl(var(--background))",
|
background: "hsl(var(--background))",
|
||||||
foreground: "hsl(var(--foreground))",
|
foreground: "hsl(var(--foreground))",
|
||||||
card: {
|
card: {
|
||||||
|
Reference in New Issue
Block a user