only show sites toggle if USE_SITES

This commit is contained in:
Lachlan Kermode
2019-01-18 16:14:41 +00:00
parent a2434b36c0
commit cb254884ca
3 changed files with 10 additions and 10 deletions

View File

@@ -13,10 +13,10 @@ function ToolbarBottomActions (props) {
{/* onClick={(view) => this.toggleMapViews(view)} */}
{/* isEnabled={this.props.viewFilters.routes} */}
{/* /> */}
<SitesIcon
isActive={props.sites.enabled}
onClickHandler={props.sites.toggle}
/>
{process.env.features.USE_SITES ? <SitesIcon
isActive={props.sites.enabled}
onClickHandler={props.sites.toggle}
/> : null}
{/* <CoeventIcon */}
{/* onClick={(view) => this.toggleMapViews(view)} */}
{/* isEnabled={this.props.viewFilters.coevents} */}