Skip to content

Commit

Permalink
DBC22-2244: Changed to show all advisories on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
minORC authored and fatbird committed May 27, 2024
1 parent b301a12 commit 9cfad3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/frontend/src/Components/map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export default function DriveBCMap(props) {
</button>

<div className="panel-content">
{openPanel && renderPanel(clickedFeature && !clickedFeature.get ? advisoriesInView : clickedFeature , isCamDetail)}
{openPanel && renderPanel(clickedFeature && !clickedFeature.get ? (smallScreen ? advisories : advisoriesInView) : clickedFeature , isCamDetail)}
</div>
</div>

Expand All @@ -410,7 +410,10 @@ export default function DriveBCMap(props) {
<ExitSurvey mobile={true} />
)}
<RouteSearch routeEdit={true} />
<AdvisoriesOnMap advisories={advisoriesInView} updateClickedFeature={updateClickedFeature} open={openPanel} clickedFeature={clickedFeature} clickedFeatureRef={clickedFeatureRef} />
{smallScreen ?
<AdvisoriesOnMap advisories={advisories} updateClickedFeature={updateClickedFeature} open={openPanel} clickedFeature={clickedFeature} clickedFeatureRef={clickedFeatureRef} />
: <AdvisoriesOnMap advisories={advisoriesInView} updateClickedFeature={updateClickedFeature} open={openPanel} clickedFeature={clickedFeature} clickedFeatureRef={clickedFeatureRef} />
}
</div>
)}

Expand Down

0 comments on commit 9cfad3a

Please sign in to comment.