summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-03-04 13:58:14 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-03-04 18:16:55 +0100
commit5d85bfaff5b5da026d193fac540c864bb4b3052d (patch)
tree975a0495193b3a319b7590bdc3c2844cddf26817 /gui/src/renderer/components
parent804bf4c49fab3c132f15f0bba4d0cece8b24b110 (diff)
downloadmullvadvpn-5d85bfaff5b5da026d193fac540c864bb4b3052d.tar.xz
mullvadvpn-5d85bfaff5b5da026d193fac540c864bb4b3052d.zip
Fix the display style for the remaining time left
Diffstat (limited to 'gui/src/renderer/components')
-rw-r--r--gui/src/renderer/components/Settings.tsx3
-rw-r--r--gui/src/renderer/components/SettingsStyles.tsx1
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/components/Settings.tsx b/gui/src/renderer/components/Settings.tsx
index 5ad50e6e0d..610de163af 100644
--- a/gui/src/renderer/components/Settings.tsx
+++ b/gui/src/renderer/components/Settings.tsx
@@ -99,7 +99,8 @@ export default class Settings extends Component<IProps> {
<View>
<Cell.CellButton onPress={this.props.onViewAccount}>
<Cell.Label>{pgettext('settings-view', 'Account')}</Cell.Label>
- <Cell.SubText style={styles.settings__account_paid_until_label__error}>
+ <Cell.SubText
+ style={isOutOfTime ? styles.settings__account_paid_until_label__error : undefined}>
{isOutOfTime ? outOfTimeMessage : formattedExpiry}
</Cell.SubText>
<Cell.Icon height={12} width={7} source="icon-chevron" />
diff --git a/gui/src/renderer/components/SettingsStyles.tsx b/gui/src/renderer/components/SettingsStyles.tsx
index d70d413c6a..d9b2692bcb 100644
--- a/gui/src/renderer/components/SettingsStyles.tsx
+++ b/gui/src/renderer/components/SettingsStyles.tsx
@@ -39,7 +39,6 @@ export default {
settings__version_warning: Styles.createViewStyle({
marginLeft: 8,
}),
-
settings__account_paid_until_label__error: Styles.createTextStyle({
color: colors.red,
}),