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