Skip to content

Commit

Permalink
file reorg; conditional rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Aug 20, 2024
1 parent d8f69e7 commit 3e429b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes
4 changes: 2 additions & 2 deletions src/components/countdown/CountdownSec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export function CountdownSec(props: {
}, [sec]);
return (
<div className={style["countdown-sec"]}>
{(sec < 180 || props.index === 0) && (
{sec < 180 || props.index === 0 ? (
<ArrivingBadge vehicle={props.vehicle} />
)}
) : null}

{sec >= 60 * 60 && (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/components/display/VehicleLocation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useEffect, useState } from "react";
import { RFeature, RLayerVector, RMap, ROSMWebGL, ROverlay } from "rlayers";
import { RView } from "rlayers/RMap";

import arrow from "../../../public/arrow.svg";
import arrow from "../../assets/arrow.svg";
import { parsedVehicleLocation } from "../../models/ttc.js";
import styles from "./VehicleLoaction.module.css";

Expand Down

0 comments on commit 3e429b6

Please sign in to comment.