diff --git a/app/renderer/components/preferences/payment/advanceSettings.js b/app/renderer/components/preferences/payment/advanceSettings.js index ca19e88b812..bf1a8e28400 100644 --- a/app/renderer/components/preferences/payment/advanceSettings.js +++ b/app/renderer/components/preferences/payment/advanceSettings.js @@ -14,20 +14,15 @@ const {SettingsList, SettingItem, SettingCheckbox} = require('../../settings') const {SettingDropdown} = require('../../dropdown') const ImmutableComponent = require('../../../../../js/components/immutableComponent') +// other +const settings = require('../../../../../js/constants/settings') + // style const commonStyles = require('../../styles/commonStyles') const globalStyles = require('../../styles/global') const {paymentCommon} = require('../../styles/payment') -// other -const settings = require('../../../../../js/constants/settings') -const getSetting = require('../../../../../js/settings').getSetting - class AdvanceSettingsContent extends ImmutableComponent { - get enabled () { - return getSetting(settings.PAYMENTS_ENABLED, this.props.settings) - } - render () { const minDuration = this.props.ledgerData.getIn(['synopsisOptions', 'minDuration']) const minPublisherVisits = this.props.ledgerData.getIn(['synopsisOptions', 'minPublisherVisits']) @@ -64,29 +59,28 @@ class AdvanceSettingsContent extends ImmutableComponent {
- {this.enabled - ? - - - - : null} + + + +
@@ -143,8 +137,8 @@ const styles = StyleSheet.create({ }, checkboxSwitch: { marginTop: '2px', - paddingTop: '0', - paddingBottom: '0' + paddingTop: 0, + paddingBottom: 0 } }) diff --git a/app/renderer/components/preferences/payment/bitcoinDashboard.js b/app/renderer/components/preferences/payment/bitcoinDashboard.js index 09bb538829a..5e1b9f53942 100644 --- a/app/renderer/components/preferences/payment/bitcoinDashboard.js +++ b/app/renderer/components/preferences/payment/bitcoinDashboard.js @@ -33,37 +33,43 @@ class BitcoinDashboard extends ImmutableComponent { this.openBuyURLTab = this.openBuyURLTab.bind(this) } - openBuyURLTab () { - // close parent dialog - this.props.hideParentOverlay() + get currency () { + return this.props.ledgerData.get('currency') || 'USD' } - get ledgerData () { - return this.props.ledgerData + get amount () { + return getSetting(settings.PAYMENTS_CONTRIBUTION_AMOUNT, this.props.settings) || 0 } - get bitcoinOverlayContent () { - return