summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/AdvancedSettings.tsx
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-10-04 15:23:05 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-10-07 12:14:42 +0200
commit774be2272d05c189ba851b6e403aa784efd7a703 (patch)
tree657205ce786298caa8482b7cd9ce74d46c74ee85 /gui/src/renderer/components/AdvancedSettings.tsx
parentf3479a2577f906b30ee33f8452100ac17b9c7547 (diff)
downloadmullvadvpn-774be2272d05c189ba851b6e403aa784efd7a703.tar.xz
mullvadvpn-774be2272d05c189ba851b6e403aa784efd7a703.zip
Add Cell.FooterText and Cell.FooterBoldText UI elements
Diffstat (limited to 'gui/src/renderer/components/AdvancedSettings.tsx')
-rw-r--r--gui/src/renderer/components/AdvancedSettings.tsx66
1 files changed, 36 insertions, 30 deletions
diff --git a/gui/src/renderer/components/AdvancedSettings.tsx b/gui/src/renderer/components/AdvancedSettings.tsx
index 53c0feb4bd..9f09be5340 100644
--- a/gui/src/renderer/components/AdvancedSettings.tsx
+++ b/gui/src/renderer/components/AdvancedSettings.tsx
@@ -190,10 +190,12 @@ export default class AdvancedSettings extends Component<IProps, IState> {
<Cell.Switch isOn={this.props.enableIpv6} onChange={this.props.setEnableIpv6} />
</Cell.Container>
<Cell.Footer>
- {messages.pgettext(
- 'advanced-settings-view',
- 'Enable IPv6 communication through the tunnel.',
- )}
+ <Cell.FooterText>
+ {messages.pgettext(
+ 'advanced-settings-view',
+ 'Enable IPv6 communication through the tunnel.',
+ )}
+ </Cell.FooterText>
</Cell.Footer>
<Cell.Container>
@@ -206,21 +208,23 @@ export default class AdvancedSettings extends Component<IProps, IState> {
/>
</Cell.Container>
<Cell.Footer>
- {messages.pgettext(
- 'advanced-settings-view',
- "Unless connected to Mullvad, this setting will completely block your internet, even when you've disconnected or quit the app.",
- )}
- </Cell.Footer>
- {this.props.blockWhenDisconnected ? (
- <Cell.Footer>
+ <Cell.FooterText>
{messages.pgettext(
'advanced-settings-view',
- "Warning: Your internet won't work without a VPN connection, even when you've quit the app.",
+ "Unless connected to Mullvad, this setting will completely block your internet, even when you've disconnected or quit the app.",
)}
- </Cell.Footer>
- ) : (
- undefined
- )}
+ </Cell.FooterText>
+
+ {this.props.blockWhenDisconnected && (
+ <Cell.FooterBoldText
+ style={styles.advanced_settings__cell_footer_internet_warning_label}>
+ {messages.pgettext(
+ 'advanced-settings-view',
+ "Warning: Your internet won't work without a VPN connection, even when you've quit the app.",
+ )}
+ </Cell.FooterBoldText>
+ )}
+ </Cell.Footer>
{process.platform !== 'win32' ? (
<View style={styles.advanced_settings__content}>
@@ -315,20 +319,22 @@ export default class AdvancedSettings extends Component<IProps, IState> {
</Cell.InputFrame>
</Cell.Container>
<Cell.Footer>
- {sprintf(
- // TRANSLATORS: The hint displayed below the Mssfix input field.
- // TRANSLATORS: Available placeholders:
- // TRANSLATORS: %(max)d - the maximum possible mssfix value
- // TRANSLATORS: %(min)d - the minimum possible mssfix value
- messages.pgettext(
- 'advanced-settings-view',
- 'Set OpenVPN MSS value. Valid range: %(min)d - %(max)d.',
- ),
- {
- min: MIN_MSSFIX_VALUE,
- max: MAX_MSSFIX_VALUE,
- },
- )}
+ <Cell.FooterText>
+ {sprintf(
+ // TRANSLATORS: The hint displayed below the Mssfix input field.
+ // TRANSLATORS: Available placeholders:
+ // TRANSLATORS: %(max)d - the maximum possible mssfix value
+ // TRANSLATORS: %(min)d - the minimum possible mssfix value
+ messages.pgettext(
+ 'advanced-settings-view',
+ 'Set OpenVPN MSS value. Valid range: %(min)d - %(max)d.',
+ ),
+ {
+ min: MIN_MSSFIX_VALUE,
+ max: MAX_MSSFIX_VALUE,
+ },
+ )}
+ </Cell.FooterText>
</Cell.Footer>
{this.wireguardKeysButton()}
</NavigationScrollbars>