Skip to content

Commit 44b12bf

Browse files
minORCbcgov-brwang
authored andcommitted
DBC22-6718: Added conditional text for plugshare link
1 parent 83c2222 commit 44b12bf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/frontend/src/Components/map/panels/RestStopPanel.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,13 @@ export default function RestStopPanel(props) {
279279
)}
280280
</div>
281281
<div className="data">
282-
<a className="plugshare-link footer-link" href="https://www.plugshare.com/" rel="noreferrer" alt="Disclaimer" >View on Plugshare</a>
282+
<a className="plugshare-link footer-link" href="https://www.plugshare.com/" rel="noreferrer" alt="Disclaimer" >
283+
{restStopData.properties.EV_STATIONS === "Y" ? (
284+
'View on Plugshare'
285+
) : (
286+
'Find chargers on Plugshare'
287+
)}
288+
</a>
283289
</div>
284290
</div>
285291
</div>

0 commit comments

Comments
 (0)