lbry-desktop/ui/page/buy/index.js
zeppi ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00

18 lines
616 B
JavaScript

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';
import BuyPage from './view';
const select = (state) => ({
receiveAddress: selectReceiveAddress(state),
gettingNewAddress: selectGettingNewAddress(state),
email: selectUserEmail(state),
user: selectUser(state),
});
export default connect(select, {
doGetNewAddress,
doUserSetCountry,
})(BuyPage);