Skip to content

Commit

Permalink
Temporarily disable plotsearch menu in prod (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrinie-nc authored Jan 8, 2024
1 parent 65760a7 commit 2975025
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/sideMenu/SideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ class SideMenu extends Component<Props, State> {
</Authorization>

<li><Link style={{color: '#b7b7b7'}} onClick={handleClick} to={getRouteById(Routes.LAND_USE_CONTRACTS)}>Maankäyttösopimukset</Link></li>

<SubMenu
{ process.env.NODE_ENV !== 'production' && <SubMenu
header='Tonttihaut ja kilpailut'
isOpen={subMenuKey === 'plot'}
items={[
Expand All @@ -224,11 +224,10 @@ class SideMenu extends Component<Props, State> {
]}
menuKey='plot'
onHeaderClick={this.handleHeaderClick}
/>

<Authorization allow={hasPermissions(usersPermissions, UsersPermissions.VIEW_AREASEARCH)}>
/>}
{ process.env.NODE_ENV !== 'production' && <Authorization allow={hasPermissions(usersPermissions, UsersPermissions.VIEW_AREASEARCH)}>
<li><Link onClick={handleClick} to={getRouteById(Routes.AREA_SEARCH)}>Aluehaut</Link></li>
</Authorization>
</Authorization>}

<Authorization allow={hasPermissions(usersPermissions, UsersPermissions.ADD_LEASEBASISOFRENT) ||
hasPermissions(usersPermissions, UsersPermissions.VIEW_INDEX) ||
Expand Down

0 comments on commit 2975025

Please sign in to comment.