Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { TeamData } from "@repo/scouting_types";
const NUMBER_OF_DIGITS = 2;
const Metric: FC<{
name: string;
value: number;
value?: number;
colors: string;
onClick?: () => void;
}> = ({ name, value, colors, onClick }) => (
Expand All @@ -19,7 +19,7 @@ const Metric: FC<{
{name}
</span>
<span className="text-3xl font-black">
{value.toFixed(NUMBER_OF_DIGITS)}
{value?.toFixed(NUMBER_OF_DIGITS)}
</span>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { NavLink, Outlet } from "react-router-dom";
import { LuTable, LuSwords } from "react-icons/lu";
import { AiOutlineTeam } from "react-icons/ai";
import type { IconType } from "react-icons/lib";
import { TiWeatherCloudy } from "react-icons/ti";

const NavigationElement: FC<NavigationElementProps> = ({
isActive,
Expand Down Expand Up @@ -34,8 +33,7 @@ interface NavigationOption {
const strategyNavigationOptions: NavigationOption[] = [
{ destination: "team", label: "Team", icon: AiOutlineTeam },
{ destination: "general", label: "General", icon: LuTable },
{ destination: "compare", label: "Compare", icon: LuSwords },
{ destination: "forecast", label: "Forecast", icon: TiWeatherCloudy },
{ destination: "tinder", label: "Tinder", icon: LuSwords },
];

interface NavigationElementProps {
Expand Down