diff --git a/react/src/components/main/main.js b/react/src/components/main/main.js index 6394888..7864278 100644 --- a/react/src/components/main/main.js +++ b/react/src/components/main/main.js @@ -65,7 +65,7 @@ class Main extends React.Component { isWalletUnlocked() { return ( - + ); } diff --git a/react/src/components/main/walletMain.js b/react/src/components/main/walletMain.js index 98ceeca..2f7aca3 100644 --- a/react/src/components/main/walletMain.js +++ b/react/src/components/main/walletMain.js @@ -1,4 +1,5 @@ import React from 'react'; +import { connect } from 'react-redux'; import Toaster from '../toaster/toaster'; import AddCoin from '../addcoin/addcoin'; import Login from '../login/login'; @@ -22,4 +23,12 @@ class WalletMain extends React.Component { } } -export default WalletMain; +const mapStateToProps = (state) => { + return { + toaster: state.toaster + }; + +}; + +export default connect(mapStateToProps)(WalletMain); +