diff options
| author | anderklander <anderklander@gmail.com> | 2018-04-12 09:41:13 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-04-16 12:01:12 +0200 |
| commit | 7f485b287d9a501e7de11d470d68f1e698ff10c2 (patch) | |
| tree | 81767a79b7d47f813da5ef2edcff150a243b3416 /app/components/Settings.js | |
| parent | c9f2ec62790a62e674b1252a6a18dec451d17bf3 (diff) | |
| download | mullvadvpn-7f485b287d9a501e7de11d470d68f1e698ff10c2.tar.xz mullvadvpn-7f485b287d9a501e7de11d470d68f1e698ff10c2.zip | |
JS fixes for react-native
Diffstat (limited to 'app/components/Settings.js')
| -rw-r--r-- | app/components/Settings.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/components/Settings.js b/app/components/Settings.js index 642887cd9b..d569c8f2f7 100644 --- a/app/components/Settings.js +++ b/app/components/Settings.js @@ -80,14 +80,14 @@ export default class Settings extends Component<SettingsProps> { testName='settings__account_paid_until_button'> <Label>Account</Label> <SubText testName='settings__account_paid_until_subtext' style={styles.settings__account_paid_until_Label__error}>OUT OF TIME</SubText> - <Img height='12' width='7' source='icon-chevron' /> + <Img height={12} width={7} source='icon-chevron' /> </CellButton> ) : ( <CellButton onPress={ this.props.onViewAccount } testName='settings__account_paid_until_button'> <Label>Account</Label> <SubText testName='settings__account_paid_until_subtext'>{ formattedExpiry }</SubText> - <Img height='12' width='7' source='icon-chevron' /> + <Img height={12} width={7} source='icon-chevron' /> </CellButton> )} </View> @@ -95,13 +95,13 @@ export default class Settings extends Component<SettingsProps> { <CellButton onPress={ this.props.onViewPreferences } testName='settings__preferences'> <Label>Preferences</Label> - <Img height='12' width='7' source='icon-chevron' /> + <Img height={12} width={7} source='icon-chevron' /> </CellButton> <CellButton onPress={ this.props.onViewAdvancedSettings } testName='settings__advanced'> <Label>Advanced</Label> - <Img height='12' width='7' source='icon-chevron' /> + <Img height={12} width={7} source='icon-chevron' /> </CellButton> <View style={styles.settings__cell_spacer}/> </View>; @@ -113,7 +113,7 @@ export default class Settings extends Component<SettingsProps> { testName='settings__version'> <Label>App version</Label> <SubText>{this._formattedVersion()}</SubText> - <Img height='16' width='16' source='icon-extLink' /> + <Img height={16} width={16} source='icon-extLink' /> </CellButton> <View style={styles.settings__cell_spacer}/> </View>; @@ -133,19 +133,19 @@ export default class Settings extends Component<SettingsProps> { <CellButton onPress={ this.props.onExternalLink.bind(this, 'faq') } testName='settings__external_link'> <Label>FAQs</Label> - <Img height='16' width='16' source='icon-extLink' /> + <Img height={16} width={16} source='icon-extLink' /> </CellButton> <CellButton onPress={ this.props.onExternalLink.bind(this, 'guides') } testName='settings__external_link'> <Label>Guides</Label> - <Img height='16' width='16' source='icon-extLink' /> + <Img height={16} width={16} source='icon-extLink' /> </CellButton> <CellButton onPress={ this.props.onViewSupport } testName='settings__view_support'> <Label>Contact support</Label> - <Img height='12' width='7' source='icon-chevron' /> + <Img height={12} width={7} source='icon-chevron' /> </CellButton> </View>; } |
