2020-06-01 19:03:19 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { selectGettingNewAddress, selectReceiveAddress } from 'redux/selectors/wallet';
|
|
|
|
import { doGetNewAddress } from 'redux/actions/wallet';
|
2020-06-15 22:33:03 +02:00
|
|
|
import { selectUserEmail, selectUser } from 'redux/selectors/user';
|
|
|
|
import { doUserSetCountry } from 'redux/actions/user';
|
2020-06-01 19:03:19 +02:00
|
|
|
import BuyPage from './view';
|
|
|
|
|
2021-10-17 10:36:14 +02:00
|
|
|
const select = (state) => ({
|
2020-06-01 19:03:19 +02:00
|
|
|
receiveAddress: selectReceiveAddress(state),
|
|
|
|
gettingNewAddress: selectGettingNewAddress(state),
|
|
|
|
email: selectUserEmail(state),
|
|
|
|
user: selectUser(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doGetNewAddress,
|
|
|
|
doUserSetCountry,
|
|
|
|
})(BuyPage);
|