2018-05-28 21:53:15 +02:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doSendDraftTransaction } from 'lbry-redux';
|
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2018-05-28 21:53:15 +02:00
|
|
|
import ModalConfirmTransaction from './view';
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2018-10-29 18:23:53 +01:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2018-05-28 21:53:15 +02:00
|
|
|
sendToAddress: (address, amount) => dispatch(doSendDraftTransaction(address, amount)),
|
|
|
|
});
|
|
|
|
|
2018-11-01 22:55:25 +01:00
|
|
|
export default connect(
|
|
|
|
null,
|
|
|
|
perform
|
|
|
|
)(ModalConfirmTransaction);
|