isHomeAndMobile reactive
This commit is contained in:
parent
58c557ecb2
commit
7d5fe8f0ee
3 changed files with 7 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -227,13 +227,13 @@ class FiresMap extends React.Component {
|
|||
<Fragment><Trans parent="span" i18nKey="activeFireInMapCount">En rojo, <strong>{{ count: this.props.activefires.length + this.props.firealerts.length }}</strong> fuegos activos en el mapa. Hay un total de <strong>{{ countTotal: this.props.activefirestotal }}</strong> fuegos activos detectados en todo el mundo por la NASA.</Trans> <Trans>Datos actualizados <FromNow when={this.props.lastCheck} />.</Trans></Fragment>
|
||||
}
|
||||
</p>
|
||||
{isNotHomeAndMobile && this.props.firealerts.length > 0 &&
|
||||
{isNotHomeAndMobile() && this.props.firealerts.length > 0 &&
|
||||
<p className="firesmap-legend"><Trans parent="span" i18nKey="activeNeigFireInMapCount">En naranja, los fuegos notificados por nuestros usuarios/as recientemente.</Trans></p> }
|
||||
{isNotHomeAndMobile && this.props.firealerts.length === 0 &&
|
||||
{isNotHomeAndMobile() && this.props.firealerts.length === 0 &&
|
||||
<p className="firesmap-legend"><Trans parent="span" i18nKey="noActiveNeigFireInMap">No hay fuegos notificados recientemente por nuestros usuarios/as en esta zona.</Trans></p> }
|
||||
</Col>
|
||||
<Col xs={12} sm={6} md={6} lg={6}>
|
||||
{isNotHomeAndMobile &&
|
||||
{isNotHomeAndMobile() &&
|
||||
<Fragment>
|
||||
<LocationAutocomplete
|
||||
focusInput={false}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue