Skip to content
Snippets Groups Projects
Commit 4e5d538b authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

ProgressIndicator: Now drawing times red that are affected by delay

This is consistent with handling on in-train info displays
parent ccb8770d
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
// import de from 'javascript-time-ago/locale/de'
// import {useEffect, useState} from "react";
import classNames from "../../../util/classNames";
export default function ProgressIndicator(props: {first?: boolean, id: string, name: string, arrival: Date, delay?: number}) {
// const [timeUntil, setTimeUntil] = useState<string>("");
//
......@@ -40,7 +42,7 @@ export default function ProgressIndicator(props: {first?: boolean, id: string, n
{props.name}
</div>
<div className={"tabular-nums"}>
<div className={classNames("tabular-nums", props.delay ? "text-red-400" : "text-zinc-300")}>
{props.delay ? (
<span className={"text-red-400"}>
(+{props.delay})&nbsp;&nbsp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment