diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-24 16:07:18 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-24 16:07:18 +0000 |
| commit | 33861c41b664c481f6542b348d6c5324c862ecab (patch) | |
| tree | 893f8a6777f51859dd9b720765083d13106a1cb4 | |
| parent | d6bdc40e7515740708c348274a446e89dc8e2895 (diff) | |
| download | mullvadvpn-33861c41b664c481f6542b348d6c5324c862ecab.tar.xz mullvadvpn-33861c41b664c481f6542b348d6c5324c862ecab.zip | |
Hide marker when connecting
| -rw-r--r-- | app/components/Connect.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js index e988a3d32f..a427810f2b 100644 --- a/app/components/Connect.js +++ b/app/components/Connect.js @@ -144,9 +144,13 @@ export default class Connect extends Component { interactive={ false } fitBounds={ this.getBounds(displayLocation.location, altitude) } fitBoundsOptions={ {offset: [0, -100]} }> - <Marker coordinates={ markerLocation } offset={ [0, -10] }> - <img src={ this.markerImage() } /> - </Marker> + <If condition={ !isConnecting }> + <Then> + <Marker coordinates={ markerLocation } offset={ [0, -10] }> + <img src={ this.markerImage() } /> + </Marker> + </Then> + </If> </ReactMapboxGl> </div> <div className="connect__container"> |
