Skip to content

Commit

Permalink
Dont show heart if the bus out of service
Browse files Browse the repository at this point in the history
  • Loading branch information
Vuroz committed Dec 23, 2024
1 parent 4f13e25 commit 2d5822c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/BoxWidgetView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function BoxWidgetView(props) {
<div id={styles.container}>
<div className={`${styles.content} header-2-font blurred-background rounded-corners drop-shadow`}>
<div id={styles.widgetHeader}>
{props.onFavoriteClick ? (
{(props.showHeart && props.onFavoriteClick) ? (
<div id={styles.favoriteContainer} className={`${styles.iconContainer}`}>
<button type='button' className={styles.iconButton} onClick={onFavoriteClickACB}>
<div className={styles.iconInnerContainer}>
Expand Down
1 change: 1 addition & 0 deletions src/views/BusJourneyInfoView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function BusJourneyInfo(props) {
renderTitleElementCB={renderTitleCB}
renderContentElementCB={renderBusJourneyInfoCB}
isFavorite={isFavoriteRoute}
showHeart={(props.journeyDetails.line != null)}
/>
);
}
Expand Down

0 comments on commit 2d5822c

Please sign in to comment.