Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Move the FAQ link next to the payment on/off toggle #8337

Merged
merged 1 commit into from
Apr 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions app/renderer/components/preferences/paymentsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,16 @@ class PaymentsTab extends ImmutableComponent {
switchClassName={css(styles.switchWrap__switchControl)}
labelClassName={css(styles.switchWrap__label)}
/>
<a className={cx({
fa: true,
'fa-question-circle': true,
[css(styles.autoSuggestSwitch__moreInfo)]: true,
[css(styles.autoSuggestSwitch__moreInfoBtnSuggest)]: true
})}
href='https://brave.com/Payments_FAQ.html'
target='_blank'
data-l10n-id='paymentsFAQLink'
/>
</div>
{
this.enabled
Expand All @@ -197,16 +207,6 @@ class PaymentsTab extends ImmutableComponent {
onChangeSetting={this.props.onChangeSetting}
switchClassName={css(styles.switchWrap__switchControl)}
/>
<a className={cx({
fa: true,
'fa-question-circle': true,
[css(styles.autoSuggestSwitch__moreInfo)]: true,
[css(styles.autoSuggestSwitch__moreInfoBtnSuggest)]: true
})}
href='https://brave.com/Payments_FAQ.html'
target='_blank'
data-l10n-id='paymentsFAQLink'
/>
</div>
</div>
<div className={css(styles.switchWrap__mainIconsRight)}>
Expand Down Expand Up @@ -308,7 +308,8 @@ const styles = StyleSheet.create({
},
autoSuggestSwitch__moreInfoBtnSuggest: {
position: 'relative',
left: '5px',
top: '-1px',
left: '8px',
cursor: 'pointer',

// TODO: refactor preferences.less to remove !important
Expand Down