From da5c646d69645058b591e43f89af8bbc2f4232b5 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sat, 6 Jan 2018 17:10:32 +0300 Subject: [PATCH] styles cleanup --- react/src/actions/actions/fiatRates.js | 32 ++++++++++++ react/src/actions/storeType.js | 1 + .../claimInterestModal/claimInterestModal.js | 4 +- .../claimInterestModal.render.js | 4 +- .../dashboard/jumblr/jumblr.render.js | 49 +++++++++++-------- .../components/dashboard/qrModal/qrModal.js | 11 ++--- .../components/dashboard/qrModal/qrModal.scss | 10 ++++ .../components/dashboard/sendCoin/sendCoin.js | 6 ++- .../dashboard/sendCoin/sendCoin.render.js | 34 +++++++------ .../settings/settings.appUpdatePanel.js | 25 ++++++---- .../dashboard/settings/settings.scss | 8 +++ .../walletsHeader/walletsHeader.render.js | 4 +- .../walletsHeader/walletsHeader.scss | 4 ++ .../walletsInfo/walletsInfo.render.js | 13 +++-- .../dashboard/walletsInfo/walletsInfo.scss | 3 ++ .../walletsMain/walletsMain.render.js | 4 +- .../zcparamsFetchModal/zcparamsFetchModal.js | 4 +- react/src/components/login/login.render.js | 14 ++---- react/src/components/login/login.scss | 15 ++++++ react/src/components/overrides.scss | 16 ++++++ react/src/reducers/dashboard.js | 6 +++ react/src/styles/index.scss | 2 + 22 files changed, 184 insertions(+), 85 deletions(-) create mode 100644 react/src/actions/actions/fiatRates.js create mode 100644 react/src/components/dashboard/walletsHeader/walletsHeader.scss create mode 100644 react/src/components/dashboard/walletsInfo/walletsInfo.scss diff --git a/react/src/actions/actions/fiatRates.js b/react/src/actions/actions/fiatRates.js new file mode 100644 index 0000000..401a9b3 --- /dev/null +++ b/react/src/actions/actions/fiatRates.js @@ -0,0 +1,32 @@ +import { FIAT_RATES } from '../storeType'; +import { triggerToaster } from '../actionCreators'; +import Config from '../../config'; + +export function fiatRates() { + return dispatch => { + return fetch(`http://46.20.235.46:8111/api/rates/kmd`, { + method: 'GET', + }) + .catch((error) => { + console.log(error); + dispatch( + triggerToaster( + 'fiatRates', + 'Error', + 'error' + ) + ); + }) + .then(response => response.json()) + .then(json => { + dispatch(fiatRates(json)); + }); + } +} + +function fiatRates(json) { + return { + type: FIAT_RATES, + response: json, + } +} \ No newline at end of file diff --git a/react/src/actions/storeType.js b/react/src/actions/storeType.js index b960965..3c2fc37 100644 --- a/react/src/actions/storeType.js +++ b/react/src/actions/storeType.js @@ -50,6 +50,7 @@ export const DISPLAY_ZCASH_PARAMS_FETCH = 'DISPLAY_ZCASH_PARAMS_FETCH'; export const DASHBOARD_REMOVE_COIN = 'DASHBOARD_REMOVE_COIN'; export const DASHBOARD_ACTIVE_COIN_NET_PEERS = 'DASHBOARD_ACTIVE_COIN_NET_PEERS'; export const DASHBOARD_ACTIVE_COIN_NET_TOTALS = 'DASHBOARD_ACTIVE_COIN_NET_TOTALS'; +export const FIAT_RATES = 'FIAT_RATES'; /* dex */ export const DEX_LOGIN = 'DEX_LOGIN'; diff --git a/react/src/components/dashboard/claimInterestModal/claimInterestModal.js b/react/src/components/dashboard/claimInterestModal/claimInterestModal.js index bf4a6d9..8223435 100755 --- a/react/src/components/dashboard/claimInterestModal/claimInterestModal.js +++ b/react/src/components/dashboard/claimInterestModal/claimInterestModal.js @@ -363,9 +363,7 @@ class ClaimInterestModal extends React.Component { className={ 'btn dropdown-toggle btn-info' + (this.props.ActiveCoin.mode === 'spv' ? ' disabled' : '') } onClick={ this.openDropMenu }> { this.state.selectedAddress } - + diff --git a/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js b/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js index 73e7ad9..a5baae6 100644 --- a/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js +++ b/react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js @@ -92,9 +92,7 @@ export const _ClaimInterestTableRender = function() { } { this.state.spvVerificationWarning && -
+
{ translate('SEND.WARNING') }: { translate('SEND.WARNING_SPV_P1') } { translate('SEND.WARNING_SPV_P2') }
{ translate('JUMBLR.NOTICE') } @@ -65,9 +64,7 @@ export const JumblrRender = function() {
-
+
-
+
-
+
+ onClick={ () => this.openTab(1) }> + { translate('INDEX.NEXT') } +
{ translate('JUMBLR.HOW_TO_USE') }