From 4271a4158228145002e158dd0cfddaa96c2432ef Mon Sep 17 00:00:00 2001 From: Tim Stirrat Date: Sat, 11 Apr 2020 17:07:29 -0700 Subject: [PATCH] Adjust text vertical centering around pulse --- app/views/LocationTracking.js | 50 ++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/app/views/LocationTracking.js b/app/views/LocationTracking.js index 8183257386..d241e161ee 100644 --- a/app/views/LocationTracking.js +++ b/app/views/LocationTracking.js @@ -420,14 +420,21 @@ class LocationTracking extends Component { translucent={true} /> {this.getPulseIfNeeded()} + - - {this.getMainText()} + + {this.state.currentState === StateEnum.AT_RISK && + this.getMainText()} {this.getSubSubText()} + + + {this.state.currentState !== StateEnum.AT_RISK && + this.getMainText()} {this.getSubText()} {this.getCTAIfNeeded()} +