diff options
| author | anderklander <anderklander@gmail.com> | 2018-02-14 20:15:49 +0100 |
|---|---|---|
| committer | anderklander <anderklander@gmail.com> | 2018-02-15 16:02:02 +0100 |
| commit | b5b64ecccd6e9ddb727f8ded678b355239dffce2 (patch) | |
| tree | a9c2af37831d0ddf4ff1a753f9875c7c65c14cc0 /app/components/Support.js | |
| parent | fca315fea6e7043da0c4d87d08aae74032326ffb (diff) | |
| download | mullvadvpn-b5b64ecccd6e9ddb727f8ded678b355239dffce2.tar.xz mullvadvpn-b5b64ecccd6e9ddb727f8ded678b355239dffce2.zip | |
AppButton-rework
Diffstat (limited to 'app/components/Support.js')
| -rw-r--r-- | app/components/Support.js | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/app/components/Support.js b/app/components/Support.js index 02ff5934c7..bcadd63741 100644 --- a/app/components/Support.js +++ b/app/components/Support.js @@ -1,7 +1,7 @@ // @flow import React from 'react'; import { Component, Text, View, TextInput } from 'reactxp'; -import { Button, AppButton } from './styled'; +import { Button, BlueButton, GreenButton, Label, Icon } from './styled'; import { Layout, Container } from './Layout'; import styles from './SupportStyles'; import Img from './Img'; @@ -191,32 +191,29 @@ export default class Support extends Component { <Text style={styles.support__no_email_warning}> You are about to send the problem report without a way for us to get back to you. If you want an answer to your report you will have to enter an email address. </Text> - <AppButton style={styles.support__form_send} - hoverStyle={styles.support__form_send_hover} + <GreenButton disabled={ !this.validate() } onPress={ this.onSend } - testName='support__send_logs' - text='Send anyway'/> + testName='support__send_logs'> + Send anyway + </GreenButton> </View>; } _renderActionButtons() { return [ - <AppButton key={1} + <BlueButton key={1} onPress={ this.onViewLog } - style={ styles.support__form_view_logs } - testName='support__view_logs' - text='View app logs' - icon="icon-extLink" - iconStyle={styles.support__open_icon} - tintColor='currentColor'/>, - <AppButton key={2} - style={styles.support__form_send} - hoverStyle={styles.support__form_send_hover} + testName='support__view_logs'> + <Label>View app logs</Label> + <Icon source='icon-extLink' height='16' width='16' /> + </BlueButton>, + <GreenButton key={2} disabled={ !this.validate() } onPress={ this.onSend } - testName='support__send_logs' - text='Send'/> + testName='support__send_logs'> + Send + </GreenButton> ]; } @@ -281,14 +278,14 @@ export default class Support extends Component { </View> </View> <View style={styles.support__footer}> - <AppButton style={styles.support__form_edit_logs} - onPress={ () => this.setState({ sendState: 'INITIAL' }) } - text='Edit message'/> - <AppButton style={styles.support__form_send} - hoverStyle={styles.support__form_send_hover} + <BlueButton onPress={ () => this.setState({ sendState: 'INITIAL' }) }> + Edit message + </BlueButton> + <GreenButton onPress={ this.onSend } - testName='support__send_logs' - text='Try again'/> + testName='support__send_logs'> + Try again + </GreenButton> </View> </View>; } |
