summaryrefslogtreecommitdiffhomepage
path: root/app/components/Settings.js
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-02-15 14:05:28 +0100
committeranderklander <anderklander@gmail.com>2018-02-15 16:02:03 +0100
commit89eeb129f065d92a82393db2deca58c0c0f2ff38 (patch)
tree9d61e6b951139dfb061c1898b7eb0aab4c5e3e73 /app/components/Settings.js
parent7ed21c2ae70a875029715d4d4c10a1c59508d6fa (diff)
downloadmullvadvpn-89eeb129f065d92a82393db2deca58c0c0f2ff38.tar.xz
mullvadvpn-89eeb129f065d92a82393db2deca58c0c0f2ff38.zip
Refactoring stuff, removed Icon
Diffstat (limited to 'app/components/Settings.js')
-rw-r--r--app/components/Settings.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/components/Settings.js b/app/components/Settings.js
index 520e18942e..cae2503127 100644
--- a/app/components/Settings.js
+++ b/app/components/Settings.js
@@ -2,7 +2,7 @@
import moment from 'moment';
import React from 'react';
import { Component, Text, View } from 'reactxp';
-import { Button, CellButton, RedButton, Label, Icon, SubText } from './styled';
+import { Button, CellButton, RedButton, Label, SubText} from './styled';
import { Layout, Container } from './Layout';
import CustomScrollbars from './CustomScrollbars';
import styles from './SettingsStyles';
@@ -82,15 +82,15 @@ export default class Settings extends Component {
<CellButton onPress={ this.props.onViewAccount }
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>
- <Icon height='12' width='7' source='icon-chevron' />
+ <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' />
</CellButton>
) : (
<CellButton onPress={ this.props.onViewAccount }
testName='settings__account_paid_until_button'>
<Label>Account</Label>
<SubText testName='settings__account_paid_until_subtext'>{ formattedExpiry }</SubText>
- <Icon height='12' width='7' source='icon-chevron' />
+ <Img height='12' width='7' source='icon-chevron' />
</CellButton>
)}
</View>
@@ -98,13 +98,13 @@ export default class Settings extends Component {
<CellButton onPress={ this.props.onViewPreferences }
testName='settings__preferences'>
<Label>Preferences</Label>
- <Icon 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>
- <Icon height='12' width='7' source='icon-chevron' />
+ <Img height='12' width='7' source='icon-chevron' />
</CellButton>
<View style={styles.settings__cell_spacer}/>
</View>;
@@ -116,7 +116,7 @@ export default class Settings extends Component {
testName='settings__version'>
<Label>App version</Label>
<SubText>{this._formattedVersion()}</SubText>
- <Icon height='16' width='16' source='icon-extLink' />
+ <Img height='16' width='16' source='icon-extLink' />
</CellButton>
<View style={styles.settings__cell_spacer}/>
</View>;
@@ -136,19 +136,19 @@ export default class Settings extends Component {
<CellButton onPress={ this.props.onExternalLink.bind(this, 'faq') }
testName='settings__external_link'>
<Label>FAQs</Label>
- <Icon 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>
- <Icon 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>
- <Icon height='12' width='7' source='icon-chevron' />
+ <Img height='12' width='7' source='icon-chevron' />
</CellButton>
</View>;
}