isHomeAndMobile reactive

This commit is contained in:
vjrj 2018-02-28 01:52:10 +01:00
parent 58c557ecb2
commit 7d5fe8f0ee
3 changed files with 7 additions and 7 deletions

View file

@ -73,7 +73,7 @@ class FireSubscription extends React.Component {
return (
<div>
<Row>
{isNotHomeAndMobile &&
{isNotHomeAndMobile() &&
<Col xs={12} sm={12} md={6} lg={6} >
<div>
<LocationAutocomplete
@ -87,7 +87,7 @@ class FireSubscription extends React.Component {
</Col> }
<Col xs={12} sm={12} md={6} lg={6} >
<DistanceSlider onChange={value => this.onSliderChange(value)} />
{isNotHomeAndMobile &&
{isNotHomeAndMobile() &&
<Row className="center-in-my-pos">
<CenterInMyPosition onClick={viewport => this.centerOnUserLocation(viewport)} />
</Row>