Skip to content

Commit

Permalink
DBC22-1804: fixed inland ferries and added env call
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrel-oxd committed Mar 4, 2024
1 parent cae3fd4 commit 9348812
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backend/config/settings/drivebc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
DRIVEBC_WEATHER_API_BASE_URL = env("DRIVEBC_WEATHER_API_BASE_URL")
DRIVEBC_WEATHER_AREAS_API_BASE_URL = env("DRIVEBC_WEATHER_AREAS_API_BASE_URL")
DRIVEBC_WEATHER_API_TOKEN_URL = env("DRIVEBC_WEATHER_API_TOKEN_URL")
DRIVEBC_WEATHER_CURRENT_API_BASE_URL = ("DRIVEBC_WEATHER_CURRENT_API_BASE_URL")
DRIVEBC_WEATHER_CURRENT_API_BASE_URL = env("DRIVEBC_WEATHER_CURRENT_API_BASE_URL")
DRIVEBC_WEATHER_CURRENT_STATIONS_API_BASE_URL = env("DRIVEBC_WEATHER_CURRENT_STATIONS_API_BASE_URL")
9 changes: 7 additions & 2 deletions src/frontend/src/Components/Filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export default function Filters(props) {
<p>Travel requires the use of an inland ferry.</p>
</Tooltip>
);
const tooltipWeather = (
<Tooltip id="tooltip" className="tooltip-content">
<p>Weather updates for roads.</p>
</Tooltip>
);

// const tooltipReststops = (
// <Tooltip id="tooltip" className="tooltip-content">
Expand Down Expand Up @@ -308,13 +313,13 @@ export default function Filters(props) {
defaultChecked={mapContext.visible_layers.weather}
disabled={disableFeatures}
/>
<label htmlFor="filter--inland-ferries">
<label htmlFor="filter--weather">
<span className="filter-item__icon">
<FontAwesomeIcon icon={faFerry} alt="weather" />
</span>
Weather
</label>
<OverlayTrigger placement="top" overlay={tooltipInlandferries}>
<OverlayTrigger placement="top" overlay={tooltipWeather}>
<span className="tooltip-info">?</span>
</OverlayTrigger>
</div>
Expand Down

0 comments on commit 9348812

Please sign in to comment.