lbry-desktop/ui/page/buy/index.js

19 lines
616 B
JavaScript
Raw Normal View History

2020-06-01 19:03:19 +02:00
import { connect } from 'react-redux';
import { selectGettingNewAddress, selectReceiveAddress } from 'redux/selectors/wallet';
import { doGetNewAddress } from 'redux/actions/wallet';
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';
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);