Skip to content

Commit

Permalink
Expand selected tap mobile on press
Browse files Browse the repository at this point in the history
  • Loading branch information
astoppop committed Aug 18, 2024
1 parent b7a8bcf commit a8f31d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SelectedTap/SelectedTap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCallback, useEffect, useRef, useState } from 'react';
import ReactGA from 'react-ga4';
import { useSelector, useDispatch } from 'react-redux';
import { useDispatch, useSelector } from 'react-redux';
import {
toggleInfoExpanded,
toggleInfoWindow,
Expand Down Expand Up @@ -191,7 +191,7 @@ const SelectedTap = () => {
open={showingInfoWindow}
onOpen={() => handleToggleInfoWindow(true)}
onClose={() => handleToggleInfoWindow(false)}
PaperProps={{ square: false }}
PaperProps={{ square: false, onClick: () => { if (!infoCollapseMobile) { setInfoCollapseMobile(true); } } }}
>
<SelectedTapDetails
image={tempImages.tapImg}
Expand Down

0 comments on commit a8f31d7

Please sign in to comment.