summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'app/components')
-rw-r--r--app/components/Account.js13
-rw-r--r--app/components/Settings.js2
2 files changed, 9 insertions, 6 deletions
diff --git a/app/components/Account.js b/app/components/Account.js
index abced9b70d..1241d1f724 100644
--- a/app/components/Account.js
+++ b/app/components/Account.js
@@ -7,7 +7,6 @@ import { Layout, Container } from './Layout';
import styles from './AccountStyles';
import Img from './Img';
import { formatAccount } from '../lib/formatters';
-import ExternalLinkSVG from '../assets/images/icon-extLink.svg';
import type { AccountReduxState } from '../redux/account/reducers';
@@ -31,7 +30,9 @@ export default class Account extends Component {
<Layout>
<Container>
<View style={styles.account}>
- <Button style={styles.account__close} onPress={ this.props.onClose }>
+ <Button style={styles.account__close}
+ onPress={ this.props.onClose }
+ testName='account__close'>
<Img style={styles.account__close_icon} source="icon-back" />
<Text style={styles.account__close_title}>Settings</Text>
</Button>
@@ -52,7 +53,7 @@ export default class Account extends Component {
<View style={styles.account__row}>
<Text style={styles.account__row_label}>Paid until</Text>
{ isOutOfTime ?
- <Text style={styles.account__out_of_time}>OUT OF TIME</Text>
+ <Text style={styles.account__out_of_time} testName='account__out_of_time'>OUT OF TIME</Text>
:
<Text style={styles.account__row_value}>{ formattedExpiry }</Text>
}
@@ -65,11 +66,13 @@ export default class Account extends Component {
text='Buy more credit'
icon='icon-extLink'
iconStyle={styles.account__buymore_icon}
- tintColor='currentColor'/>
+ tintColor='currentColor'
+ testName='account__buymore'/>
<AppButton style={styles.account__logout}
hoverStyle={styles.account__logout_hover}
onPress={ this.props.onLogout }
- text='Log out'/>
+ text='Log out'
+ testName='account__logout'/>
</View>
</View>
diff --git a/app/components/Settings.js b/app/components/Settings.js
index d854b51d7d..f992429811 100644
--- a/app/components/Settings.js
+++ b/app/components/Settings.js
@@ -3,7 +3,7 @@ import moment from 'moment';
import React from 'react';
import { Component, Text, View } from 'reactxp';
import { Button, CellButton, AppButton } from './styled';
-import { Layout, Container, Header } from './Layout';
+import { Layout, Container } from './Layout';
import CustomScrollbars from './CustomScrollbars';
import styles from './SettingsStyles';
import Img from './Img';