Browse Source

removed walletsNativeAlert component

all-modes
pbca26 7 years ago
parent
commit
74ee6d4f17
  1. 3
      react/src/components/addcoin/addcoin.js
  2. 1
      react/src/components/app/app.js
  3. 3
      react/src/components/dashboard/atomic/atomic.js
  4. 3
      react/src/components/dashboard/coindDownModal/coindDownModal.js
  5. 3
      react/src/components/dashboard/jumblr/jumblr.js
  6. 3
      react/src/components/dashboard/loginSettingsModal/loginSettingsModal.js
  7. 5
      react/src/components/dashboard/main/dashboard.js
  8. 3
      react/src/components/dashboard/navbar/navbar.js
  9. 2
      react/src/components/dashboard/qrModal/qrModal.js
  10. 3
      react/src/components/dashboard/receiveCoin/receiveCoin.js
  11. 4
      react/src/components/dashboard/sendCoin/sendCoin.js
  12. 1
      react/src/components/dashboard/settings/settings.js
  13. 3
      react/src/components/dashboard/syncOnly/syncOnly.js
  14. 2
      react/src/components/dashboard/walletsBalance/walletsBalance.js
  15. 3
      react/src/components/dashboard/walletsCacheData/walletsCacheData.js
  16. 5
      react/src/components/dashboard/walletsInfo/walletsInfo.js
  17. 3
      react/src/components/dashboard/walletsNative/walletsNative.js
  18. 20
      react/src/components/dashboard/walletsNativeAlert/walletsNativeAlert.js
  19. 19
      react/src/components/dashboard/walletsNativeAlert/walletsNativeAlert.render.js
  20. 3
      react/src/components/dashboard/walletsNativeSend/walletsNativeSend.js
  21. 1
      react/src/components/dashboard/walletsNav/walletsNav.js
  22. 3
      react/src/components/dashboard/walletsProgress/walletsProgress.js
  23. 3
      react/src/components/dashboard/walletsTxInfo/walletsTxInfo.js
  24. 3
      react/src/components/main/walletMain.js

3
react/src/components/addcoin/addcoin.js

@ -363,9 +363,8 @@ const mapStateToProps = (state) => {
ActiveCoin: {
coin: state.ActiveCoin.coin,
},
AddCoin: state.AddCoin,
AddCoin: state.AddCoin,
};
};
export default connect(mapStateToProps)(AddCoin);

1
react/src/components/app/app.js

@ -14,7 +14,6 @@ function mapStateToProps(state) {
Settings: state.Settings,
Interval: state.Interval,
SyncOnly: state.SyncOnly,
Errors: state.Errors,
};
}

3
react/src/components/dashboard/atomic/atomic.js

@ -502,9 +502,8 @@ const mapStateToProps = (state) => {
return {
Atomic: {
response: state.Atomic.response,
}
},
};
};
export default connect(mapStateToProps)(Atomic);

3
react/src/components/dashboard/coindDownModal/coindDownModal.js

@ -38,9 +38,8 @@ class CoindDownModal extends React.Component {
const mapStateToProps = (state) => {
return {
displayCoindDownModal: state.Dashboard.displayCoindDownModal,
debugLog: state.Settings.debugLog
debugLog: state.Settings.debugLog,
};
};
export default connect(mapStateToProps)(CoindDownModal);

3
react/src/components/dashboard/jumblr/jumblr.js

@ -429,9 +429,8 @@ const mapStateToProps = (state) => {
return {
ActiveCoin: {
coin: state.ActiveCoin.coin,
}
},
};
};
export default connect(mapStateToProps)(Jumblr);

3
react/src/components/dashboard/loginSettingsModal/loginSettingsModal.js

@ -32,9 +32,8 @@ class LoginSettingsModal extends React.Component {
const mapStateToProps = (state) => {
return {
Main: state.Main
Main: state.Main,
};
};
export default connect(mapStateToProps)(LoginSettingsModal);

5
react/src/components/dashboard/main/dashboard.js

@ -46,10 +46,9 @@ const mapStateToProps = (state) => {
mode: state.ActiveCoin.mode,
},
Dashboard: {
activeSection: state.Dashboard.activeSection,
}
activeSection: state.Dashboard.activeSection,
},
};
};
export default connect(mapStateToProps)(Dashboard);

3
react/src/components/dashboard/navbar/navbar.js

@ -127,9 +127,8 @@ const mapStateToProps = (state) => {
Interval: {
interval: state.Interval.interval,
},
nativeOnly: Config.iguanaLessMode
nativeOnly: Config.iguanaLessMode,
};
};
export default connect(mapStateToProps)(Navbar);

2
react/src/components/dashboard/qrModal/qrModal.js

@ -45,7 +45,7 @@ class QRModal extends React.Component {
openModal() {
this.setState({
modalIsOpen: true
modalIsOpen: true,
});
if (this.props.mode === 'scan') {

3
react/src/components/dashboard/receiveCoin/receiveCoin.js

@ -226,9 +226,8 @@ const mapStateToProps = (state) => {
cache: state.ActiveCoin.cache,
activeSection: state.ActiveCoin.activeSection,
activeAddress: state.ActiveCoin.activeAddress,
addresses: state.ActiveCoin.addresses
addresses: state.ActiveCoin.addresses,
};
};
export default connect(mapStateToProps)(ReceiveCoin);

4
react/src/components/dashboard/sendCoin/sendCoin.js

@ -882,10 +882,8 @@ const mapStateToProps = (state) => {
},
Dashboard: {
activeHandle: state.Dashboard.activeHandle,
}
},
};
};
export default connect(mapStateToProps)(SendCoin);

1
react/src/components/dashboard/settings/settings.js

@ -857,7 +857,6 @@ const mapStateToProps = (state) => {
},
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(Settings);

3
react/src/components/dashboard/syncOnly/syncOnly.js

@ -169,9 +169,8 @@ const mapStateToProps = (state) => {
},
Interval: {
interval: state.Interval.interval,
}
},
};
};
export default connect(mapStateToProps)(SyncOnly);

2
react/src/components/dashboard/walletsBalance/walletsBalance.js

@ -204,7 +204,7 @@ const mapStateToProps = (state) => {
Dashboard: {
progress: state.Dashboard.progress,
activeHandle: state.Dashboard.activeHandle,
}
},
};
};

3
react/src/components/dashboard/walletsCacheData/walletsCacheData.js

@ -193,9 +193,8 @@ const mapStateToProps = (state) => {
},
Dashboard: {
displayViewCacheModal: state.Dashboard.displayViewCacheModal,
}
},
};
};
export default connect(mapStateToProps)(WalletsCacheData);

5
react/src/components/dashboard/walletsInfo/walletsInfo.js

@ -33,10 +33,9 @@ const mapStateToProps = (state) => {
activeSection: state.ActiveCoin.activeSection,
},
Dashboard: {
progress: state.Dashboard.progress
}
progress: state.Dashboard.progress,
},
};
};
export default connect(mapStateToProps)(WalletsInfo);

3
react/src/components/dashboard/walletsNative/walletsNative.js

@ -79,9 +79,8 @@ const mapStateToProps = (state) => {
ActiveCoin: {
coin: state.ActiveCoin.coin,
mode: state.ActiveCoin.mode,
}
},
};
};
export default connect(mapStateToProps)(WalletsNative);

20
react/src/components/dashboard/walletsNativeAlert/walletsNativeAlert.js

@ -1,20 +0,0 @@
import React from 'react';
import WalletsNativeAlertRender from './walletsNativeAlert.render';
class WalletsNativeAlert extends React.Component {
hasNoProgress() {
return this.props &&
this.props.Dashboard &&
!this.props.Dashboard.progress;
}
render() {
if (this.hasNoProgress()) {
return WalletsNativeAlertRender.call(this);
}
return null;
}
}
export default WalletsNativeAlert;

19
react/src/components/dashboard/walletsNativeAlert/walletsNativeAlert.render.js

@ -1,19 +0,0 @@
import React from 'react';
import { translate } from '../../../translate/translate';
const WalletsNativeAlertRender = function() {
return (
<div className="alert alert-danger alert-dismissible">
<h4>{ translate('INDEX.OOPS_ERROR') }</h4>
<p>
<span>{ translate('INDEX.OOPS_ERROR_DESC') }</span>
<code>server=1</code><br/>
<code>rpcport=</code><br/>
<code>rpcuser=</code><br/>
<code>rpcpassword=</code>
</p>
</div>
);
};
export default WalletsNativeAlertRender;

3
react/src/components/dashboard/walletsNativeSend/walletsNativeSend.js

@ -458,9 +458,8 @@ const mapStateToProps = (state) => {
mode: state.ActiveCoin.mode,
opids: state.ActiveCoin.opids,
activeSection: state.ActiveCoin.activeSection,
}
},
};
};
export default connect(mapStateToProps)(WalletsNativeSend);

1
react/src/components/dashboard/walletsNav/walletsNav.js

@ -139,7 +139,6 @@ const mapStateToProps = (state) => {
},
nativeOnly: Config.iguanaLessMode,
};
};
export default connect(mapStateToProps)(WalletsNav);

3
react/src/components/dashboard/walletsProgress/walletsProgress.js

@ -239,9 +239,8 @@ const mapStateToProps = (state) => {
ActiveCoin: {
mode: state.ActiveCoin.mode,
coin: state.coin,
}
},
};
};
export default connect(mapStateToProps)(WalletsProgress);

3
react/src/components/dashboard/walletsTxInfo/walletsTxInfo.js

@ -62,9 +62,8 @@ const mapStateToProps = (state) => {
activeSection: state.ActiveCoin.activeSection,
activeAddress: state.ActiveCoin.activeAddress,
showTransactionInfoTxIndex: state.ActiveCoin.showTransactionInfoTxIndex,
}
},
};
};
export default connect(mapStateToProps)(WalletsTxInfo);

3
react/src/components/main/walletMain.js

@ -23,9 +23,8 @@ class WalletMain extends React.Component {
const mapStateToProps = (state) => {
return {
toaster: state.toaster
toaster: state.toaster,
};
};
export default connect(mapStateToProps)(WalletMain);

Loading…
Cancel
Save