diff options
| author | Erik Larkö <erik@mullvad.net> | 2018-01-04 07:40:36 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2018-01-09 14:40:20 +0100 |
| commit | 177efaf5829f2da43462e2817d1f0876f6a5064a (patch) | |
| tree | bbff9d8981938a4a1b2c6314518d2d4e1cbf8e80 | |
| parent | 9cc1967a74ac6098cd0492b21e5329c14ba33f35 (diff) | |
| download | mullvadvpn-177efaf5829f2da43462e2817d1f0876f6a5064a.tar.xz mullvadvpn-177efaf5829f2da43462e2817d1f0876f6a5064a.zip | |
Make the time left label work on react native
| -rw-r--r-- | app/components/Settings.js | 2 | ||||
| -rw-r--r-- | app/components/SettingsStyles.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/components/Settings.js b/app/components/Settings.js index cb739153d2..b5c0465210 100644 --- a/app/components/Settings.js +++ b/app/components/Settings.js @@ -72,7 +72,7 @@ export default class Settings extends Component { if(isLoggedIn && expiryIso) { let expiry = moment(this.props.account.expiry); isOutOfTime = expiry.isSameOrBefore(moment()); - formattedExpiry = expiry.fromNow(true) + ' left'; + formattedExpiry = (expiry.fromNow(true) + ' left').toUpperCase(); } return <View> diff --git a/app/components/SettingsStyles.js b/app/components/SettingsStyles.js index 28b406a9ce..1013c1b6c8 100644 --- a/app/components/SettingsStyles.js +++ b/app/components/SettingsStyles.js @@ -119,13 +119,12 @@ export default Object.assign(createViewStyles({ }, settings__account_paid_until_label_container :{ flexGrow: 0, - textAlign: 'end', + textAlign: 'right', }, settings__account_paid_until_label:{ fontFamily: 'Open Sans', fontSize: 13, fontWeight: '800', color: 'rgba(255, 255, 255, 0.8)', - textTransform: 'uppercase', }, })); |
