diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-20 15:35:44 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-24 13:48:18 +0200 |
| commit | b45bc31c0b6a3c248c64da3cd75f9e10607bdc8a (patch) | |
| tree | 38f1972ac884b6372ec38becd68144af20c18b57 /app/components/Support.js | |
| parent | 4b15132791c45c6d5675dbb39c74c5a6d257d458 (diff) | |
| download | mullvadvpn-b45bc31c0b6a3c248c64da3cd75f9e10607bdc8a.tar.xz mullvadvpn-b45bc31c0b6a3c248c64da3cd75f9e10607bdc8a.zip | |
Remove global styles from app buttons
Diffstat (limited to 'app/components/Support.js')
| -rw-r--r-- | app/components/Support.js | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/app/components/Support.js b/app/components/Support.js index 34fc360215..d909262429 100644 --- a/app/components/Support.js +++ b/app/components/Support.js @@ -190,7 +190,7 @@ export default class Support extends Component<SupportProps, SupportState> { return ( <View style={styles.support__content}> <View style={styles.support__form}> - <View style={styles.support__form_row}> + <View style={styles.support__form_row_email}> <TextInput style={styles.support__form_email} placeholder="Your email (optional)" @@ -232,26 +232,30 @@ export default class Support extends Component<SupportProps, SupportState> { disabled={!this.validate()} onPress={this.onSend} testName="support__send_logs"> - Send anyway + {'Send anyway'} </AppButton.GreenButton> </View> ); } _renderActionButtons() { - return [ - <AppButton.BlueButton key={1} onPress={this.onViewLog} testName="support__view_logs"> - <AppButton.Label>View app logs</AppButton.Label> - <Img source="icon-extLink" height={16} width={16} /> - </AppButton.BlueButton>, - <AppButton.GreenButton - key={2} - disabled={!this.validate()} - onPress={this.onSend} - testName="support__send_logs"> - Send - </AppButton.GreenButton>, - ]; + return ( + <View> + <AppButton.BlueButton + style={styles.view_logs_button} + onPress={this.onViewLog} + testName="support__view_logs"> + <AppButton.Label>View app logs</AppButton.Label> + <Img source="icon-extLink" height={16} width={16} /> + </AppButton.BlueButton> + <AppButton.GreenButton + disabled={!this.validate()} + onPress={this.onSend} + testName="support__send_logs"> + Send + </AppButton.GreenButton> + </View> + ); } _renderLoading() { |
