Skip to content

Commit

Permalink
AB#39612: Remove unrealistic durations from stop list (#179)
Browse files Browse the repository at this point in the history
* AB#39612: Remove unrealistic durations from stop list

* Tweak styles
  • Loading branch information
e-halinen authored Dec 20, 2024
1 parent 77fa683 commit a27e96f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
11 changes: 1 addition & 10 deletions src/components/stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@ import styles from "./stop.module.css";
import PropTypes from "prop-types";
import timeIcon2 from "../icons/icon-time2.svg";

const Stop = ({
shortId,
stopNameFi,
stopNameSv,
duration,
platform,
onClick,
timingStopType,
}) => (
const Stop = ({ shortId, stopNameFi, stopNameSv, platform, onClick, timingStopType }) => (
<button className={styles.root} onClick={onClick}>
<p className={styles.textTitle}>{shortId}</p>
<div className={styles.infoContainer}>
Expand All @@ -21,7 +13,6 @@ const Stop = ({
</div>
<div className={styles.additionalInfoContainer}>
<div className={styles.textAdditional}>{stopNameSv}</div>
<div className={styles.textDuration}>{duration} min</div>
</div>
</div>
{timingStopType > 0 && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/stop.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.textTitle {
font-size: var(--mainTextSize);
font-weight: 600;
width: 68px;
width: 100px;
flex-wrap: wrap;
}

Expand Down
1 change: 0 additions & 1 deletion src/components/stopList.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const renderStops = (routeStops, isFullScreen, setMapCenter) =>
shortId={stop.shortId}
stopNameFi={stop.nameFi}
stopNameSv={stop.nameSe}
duration={stop.duration}
timingStopType={stop.timingStopType}
platform={stop.platform}
onClick={() => setMapCenter({ lat: stop.lat, lng: stop.lon, stopId: stop.stopId })}
Expand Down

0 comments on commit a27e96f

Please sign in to comment.