smh my head
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 58s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m55s

This commit is contained in:
Lee
2024-10-29 18:52:14 +00:00
parent 448155a3c3
commit de441b698c
3 changed files with 6 additions and 8 deletions

View File

@ -4,7 +4,7 @@ import { capitalizeFirstLetter } from "@/common/string-utils";
import Tooltip from "@/components/tooltip";
import { ReactElement } from "react";
import { PlayerStatValue } from "@ssr/common/player/player-stat-change";
import { Timeframe } from "@ssr/common/timeframe";
import { StatisticRange } from "@ssr/common/player/player";
type ChangeOverTimeProps = {
/**
@ -40,7 +40,7 @@ export function ChangeOverTime({ player, type, children }: ChangeOverTimeProps)
};
// Renders the change for a given time frame
const renderChange = (value: number | undefined, range: Timeframe) => (
const renderChange = (value: number | undefined, range: StatisticRange) => (
<p>
{capitalizeFirstLetter(range)} Change:{" "}
<span className={value === undefined ? "" : value >= 0 ? (value === 0 ? "" : "text-green-500") : "text-red-500"}>