Skip to content

Commit

Permalink
Don't show tablist when editing location
Browse files Browse the repository at this point in the history
  • Loading branch information
wbazant committed Feb 2, 2025
1 parent 59edef3 commit add208f
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/components/mobile/MobileLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,23 @@ const MobileLayout = () => {
</Switch>
</TabPanels>
<Switch>
<Route>
<TabList
style={{
zIndex: zIndex.mobileTablist,
position: 'fixed',
width: '100%',
bottom: 0,
height: '50px',
}}
>
{tabContent}
</TabList>
<Route path={['/locations/:locationId/edit/:postfix', '*']}>
{({ match }) =>
(!match.params.postfix ||
match.params.postfix === 'position') && (
<TabList
style={{
zIndex: zIndex.mobileTablist,
position: 'fixed',
width: '100%',
bottom: 0,
height: '50px',
}}
>
{tabContent}
</TabList>
)
}
</Route>
</Switch>
</Route>
Expand Down

0 comments on commit add208f

Please sign in to comment.