lbry-desktop/ui/modal/modalConfirmTransaction/index.js
2019-11-11 13:27:29 -05:00

14 lines
428 B
JavaScript

import { connect } from 'react-redux';
import { doSendDraftTransaction } from 'lbry-redux';
import { doHideModal } from 'redux/actions/app';
import ModalConfirmTransaction from './view';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
sendToAddress: (address, amount) => dispatch(doSendDraftTransaction(address, amount)),
});
export default connect(
null,
perform
)(ModalConfirmTransaction);