2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:23:53 -04:00
|
|
|
import { selectModal } from 'redux/selectors/app';
|
2022-05-18 18:20:55 +08:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2021-10-17 16:36:14 +08:00
|
|
|
import { selectError } from 'redux/selectors/notifications'; // RENAME THIS 'selectNotificationError'
|
2017-12-21 18:08:54 -03:00
|
|
|
import ModalRouter from './view';
|
2017-08-18 13:09:40 -04:00
|
|
|
|
2019-03-28 12:53:13 -04:00
|
|
|
const select = (state, props) => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
modal: selectModal(state),
|
|
|
|
error: selectError(state),
|
2017-08-18 13:09:40 -04:00
|
|
|
});
|
|
|
|
|
2022-05-18 18:20:55 +08:00
|
|
|
const perform = {
|
|
|
|
hideModal: doHideModal,
|
|
|
|
};
|
2017-08-18 13:09:40 -04:00
|
|
|
|
2021-10-17 16:36:14 +08:00
|
|
|
export default connect(select, perform)(ModalRouter);
|