Skip to content

Commit e0d0229

Browse files
committed
Mobile: don't show the layer picker button when already in layer picker
1 parent cdf2759 commit e0d0229

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.changelog/2101.trivial.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mobile: don't show the layer picker button when already in layer picker

src/app/components/LayerPicker/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { scopeFreedom, RouteUtils, mergeNetworksInLayerSelector } from '../../ut
1717
import { styled } from '@mui/material/styles'
1818
import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft'
1919
import { useScreenSize } from '../../hooks/useScreensize'
20-
import { MobileNetworkButton } from '../PageLayout/NetworkButton'
2120

2221
type LayerPickerProps = {
2322
onClose: () => void
@@ -137,12 +136,6 @@ const LayerPickerContent: FC<LayerPickerContentProps> = ({ isOutOfDate, onClose,
137136
</TabletBackButton>
138137
)}
139138
</div>
140-
<MobileNetworkButton
141-
isOutOfDate={isOutOfDate}
142-
network={activeScope.network}
143-
layer={activeScope.layer}
144-
onClick={onClose}
145-
/>
146139
</TabletActionBar>
147140
)}
148141
<Divider />

0 commit comments

Comments
 (0)