Skip to content
Open
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
8 changes: 6 additions & 2 deletions dashboard/src/components/driver/DriverDRS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ type Props = {

export default function DriverDRS({ on, possible, inPit, pitOut }: Props) {
const pit = inPit || pitOut;
const label = pit ? "PIT" : "OVTK";
const fullLabel = pit ? "PIT" : "OVERTAKE";

return (
<span
title={fullLabel}
aria-label={fullLabel}
className={clsx(
"text-md inline-flex h-8 w-full items-center justify-center rounded-md border-2 font-mono font-black",
"inline-flex h-8 w-full items-center justify-center rounded-md border-2 font-mono text-xs leading-none font-black tracking-tight sm:text-sm",
{
"border-zinc-700 text-zinc-700": !pit && !on && !possible,
"border-zinc-400 text-zinc-400": !pit && !on && possible,
Expand All @@ -22,7 +26,7 @@ export default function DriverDRS({ on, possible, inPit, pitOut }: Props) {
},
)}
>
{pit ? "PIT" : "DRS"}
{label}
</span>
);
}