lbry-desktop/ui/component/walletAddress/index.js

18 lines
653 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { selectReceiveAddress, selectGettingNewAddress } from 'redux/selectors/wallet';
import { doCheckAddressIsMine, doGetNewAddress } from 'redux/actions/wallet';
import WalletAddress from './view';
import { withRouter } from 'react-router';
const select = (state) => ({
receiveAddress: selectReceiveAddress(state),
gettingNewAddress: selectGettingNewAddress(state),
2017-06-06 06:21:55 +02:00
});
const perform = (dispatch) => ({
checkAddressIsMine: (address) => dispatch(doCheckAddressIsMine(address)),
getNewAddress: () => dispatch(doGetNewAddress()),
2017-06-06 06:21:55 +02:00
});
export default withRouter(connect(select, perform)(WalletAddress));