Skip to content

Commit 2f3a088

Browse files
committed
Add brief comment explaining empty div in PickupPointsModal
1 parent 23de142 commit 2f3a088

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

react/PickupPointsModal.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ class PickupPointsModal extends Component {
291291
shouldShow={shouldShowMap}
292292
isLargeScreen={isLargeScreen}
293293
/>
294+
{/*
295+
* Used for rendering the <ZoomControls /> component. This is
296+
* currently done this way because the ZoomControls must be a child of <Map />
297+
* to be able to consume the <GoogleMaps /> context, but it must be placed in
298+
* this position for the layout to work
299+
*/}
294300
<div id="controls-wrapper" />
295301

296302
{shouldUseMaps && (

0 commit comments

Comments
 (0)