summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-02-24 16:07:18 +0000
committerAndrej Mihajlov <and@codeispoetry.ru>2017-02-24 16:07:18 +0000
commit33861c41b664c481f6542b348d6c5324c862ecab (patch)
tree893f8a6777f51859dd9b720765083d13106a1cb4
parentd6bdc40e7515740708c348274a446e89dc8e2895 (diff)
downloadmullvadvpn-33861c41b664c481f6542b348d6c5324c862ecab.tar.xz
mullvadvpn-33861c41b664c481f6542b348d6c5324c862ecab.zip
Hide marker when connecting
-rw-r--r--app/components/Connect.js10
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">