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