diff --git a/react/src/components/dashboard/syncOnly/syncOnly.js b/react/src/components/dashboard/syncOnly/syncOnly.js index c79f267..01e06ab 100644 --- a/react/src/components/dashboard/syncOnly/syncOnly.js +++ b/react/src/components/dashboard/syncOnly/syncOnly.js @@ -1,4 +1,5 @@ import React from 'react'; +import { connect } from 'react-redux'; import { getCoinTitle } from '../../../util/coinHelper'; import { translate } from '../../../translate/translate'; import { @@ -17,8 +18,8 @@ import { } from './syncOnly.render'; class SyncOnly extends React.Component { - constructor(props) { - super(props); + constructor() { + super(); this.state = { autoRestartedForks: {}, }; @@ -157,4 +158,20 @@ class SyncOnly extends React.Component { } } -export default SyncOnly; \ No newline at end of file +const mapStateToProps = (state) => { + return { + SyncOnly: { + display: state.SyncOnly.display, + forks: state.SyncOnly.forks, + send: state.ActiveCoin.send, + receive: state.ActiveCoin.receive, + balance: state.ActiveCoin.balance, + }, + Interval: { + interval: state.Interval.interval, + } + }; + +}; + +export default connect(mapStateToProps)(SyncOnly); \ No newline at end of file diff --git a/react/src/components/main/walletMain.js b/react/src/components/main/walletMain.js index 65e0e5c..27961f9 100644 --- a/react/src/components/main/walletMain.js +++ b/react/src/components/main/walletMain.js @@ -11,7 +11,7 @@ class WalletMain extends React.Component { return (
- +