From 2d849362690873c7ee1ca180303a55940c161dc4 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sat, 3 Jun 2017 18:33:47 +0300 Subject: [PATCH] removed aria related props --- react/src/actions/actionCreators.js | 4 +- react/src/actions/actions/nativeNewAddress.js | 3 +- react/src/actions/actions/nativeSend.js | 2 +- react/src/components/addcoin/addcoin.js | 4 +- react/src/components/dashboard/atomic.js | 3 +- react/src/components/dashboard/coinTile.js | 10 +- .../src/components/dashboard/coinTileItem.js | 4 - react/src/components/dashboard/jumblr.js | 49 +++---- react/src/components/dashboard/navbar.js | 44 +++--- .../src/components/dashboard/notifications.js | 41 ++---- react/src/components/dashboard/receiveCoin.js | 10 +- react/src/components/dashboard/sendCoin.js | 29 ++-- react/src/components/dashboard/settings.js | 70 ++++------ react/src/components/dashboard/syncOnly.js | 7 +- .../components/dashboard/walletsBalance.js | 12 +- .../dashboard/walletsBasiliskConnection.js | 6 +- .../dashboard/walletsBasiliskRefresh.js | 2 +- .../components/dashboard/walletsCacheData.js | 9 +- react/src/components/dashboard/walletsData.js | 80 ++++------- .../src/components/dashboard/walletsHeader.js | 130 +++++------------- .../dashboard/walletsNativeAlert.js | 6 +- .../dashboard/walletsNativeReceive.js | 29 ++-- .../components/dashboard/walletsNativeSend.js | 28 ++-- .../dashboard/walletsNativeSyncProgress.js | 8 +- .../dashboard/walletsNativeTxHistory.js | 24 +--- .../dashboard/walletsNativeTxInfo.js | 57 +++----- react/src/components/dashboard/walletsNav.js | 14 +- .../dashboard/walletsNotariesList.js | 4 +- .../components/dashboard/walletsProgress.js | 9 +- .../src/components/dashboard/walletsTxInfo.js | 30 ++-- react/src/components/login/login.js | 10 +- react/src/components/toaster/toaster-item.js | 2 +- react/src/components/toaster/toaster.js | 4 +- react/src/translate/en.js | 4 + 34 files changed, 276 insertions(+), 472 deletions(-) diff --git a/react/src/actions/actionCreators.js b/react/src/actions/actionCreators.js index c53a8be..56f1015 100644 --- a/react/src/actions/actionCreators.js +++ b/react/src/actions/actionCreators.js @@ -153,7 +153,7 @@ export function basiliskConnection(display) { export function syncingNativeModeState(display, json) { return { - type: SYNCING_FULL_MODE, + type: SYNCING_NATIVE_MODE, syncingNativeMode: display, progress: json, } @@ -161,7 +161,7 @@ export function syncingNativeModeState(display, json) { export function syncingFullModeState(display, json) { return { - type: SYNCING_NATIVE_MODE, + type: SYNCING_FULL_MODE, syncingFullMode: display, progress: json, } diff --git a/react/src/actions/actions/nativeNewAddress.js b/react/src/actions/actions/nativeNewAddress.js index 965fb9a..bec0473 100644 --- a/react/src/actions/actions/nativeNewAddress.js +++ b/react/src/actions/actions/nativeNewAddress.js @@ -2,7 +2,8 @@ import { translate } from '../../translate/translate'; import { triggerToaster, Config, - getPassthruAgent + getPassthruAgent, + getKMDAddressesNative } from '../actionCreators'; import { logGuiHttp, diff --git a/react/src/actions/actions/nativeSend.js b/react/src/actions/actions/nativeSend.js index 51bd2fd..3295820 100644 --- a/react/src/actions/actions/nativeSend.js +++ b/react/src/actions/actions/nativeSend.js @@ -16,7 +16,7 @@ export function sendNativeTx(coin, _payload) { let payload; let _apiMethod; - if (_payload.addressType === 'public') { + if (_payload.addressType === 'public' && _payload.sendTo.length !== 95) { _apiMethod = 'sendtoaddress'; ajaxDataToHex = `["${_payload.sendTo}", ${Number(_payload.amount) - Number(_payload.fee)}]`; } else { diff --git a/react/src/components/addcoin/addcoin.js b/react/src/components/addcoin/addcoin.js index 4309a62..abb3f4f 100644 --- a/react/src/components/addcoin/addcoin.js +++ b/react/src/components/addcoin/addcoin.js @@ -245,7 +245,9 @@ class AddCoin extends React.Component { const _coin = _item.selectedCoin || ''; items.push( -
1 ? 'multi' : 'single' } key={ `add-coin-${i}` }> +
1 ? 'multi' : 'single' } + key={ `add-coin-${i}` }>
@@ -77,8 +77,8 @@ class CoinTile extends React.Component {
-
-
+
+
{ this.renderTiles() }
diff --git a/react/src/components/dashboard/coinTileItem.js b/react/src/components/dashboard/coinTileItem.js index 5b5a40e..9dc6901 100644 --- a/react/src/components/dashboard/coinTileItem.js +++ b/react/src/components/dashboard/coinTileItem.js @@ -36,10 +36,6 @@ class CoinTileItem extends React.Component { // TODO: 1) cache native/full node data to file // 2) limit amount of req per update e.g. list of addresses don't change too often // 3) limit req in basilisk as much as possible incl. activehandle - // 4) add pending requests store - - // TODO: update all addresses once in 20 min, current address every 10 min - // always fetch main addr data and current selected address dispatchCoinActions(coin, mode) { if (mode === 'native') { diff --git a/react/src/components/dashboard/jumblr.js b/react/src/components/dashboard/jumblr.js index 6220fc1..5632a18 100755 --- a/react/src/components/dashboard/jumblr.js +++ b/react/src/components/dashboard/jumblr.js @@ -36,9 +36,9 @@ class Jumblr extends React.Component {
-
- { translate('JUMBLR.NOTICE') } @@ -50,11 +50,11 @@ class Jumblr extends React.Component {
- - { translate('JUMBLR.NEED_NATIVE') } + { translate('JUMBLR.NEED_NATIVE') }
{ translate('JUMBLR.TO_USE_JUMBLR') } @@ -68,23 +68,17 @@ class Jumblr extends React.Component {
-
+
+ id="jumblr_security_notes_1">
  • { translate('JUMBLR.FEW_SECURITY_NOTES_DESC1') }
  • @@ -100,18 +94,12 @@ class Jumblr extends React.Component {
    + id="jumblr_access_funds_2">

    { translate('JUMBLR.ADDRESS_ACCESSIBLE_EASILY') }

      @@ -140,17 +128,12 @@ class Jumblr extends React.Component {
    -