2852138c3a
* allow sending directly to a channel or content address
19 lines
694 B
JavaScript
19 lines
694 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectBalance, selectMyChannelClaims, makeSelectClaimForUri } from 'lbry-redux';
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
import WalletSend from './view';
|
|
import { withRouter } from 'react-router';
|
|
import { selectToast } from 'redux/selectors/notifications';
|
|
|
|
const perform = dispatch => ({
|
|
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
|
|
});
|
|
|
|
const select = (state, props) => ({
|
|
balance: selectBalance(state),
|
|
channels: selectMyChannelClaims(state),
|
|
contentClaim: makeSelectClaimForUri(props.contentUri)(state),
|
|
snack: selectToast(state),
|
|
});
|
|
|
|
export default withRouter(connect(select, perform)(WalletSend));
|