2018-02-24 01:24:00 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doAutoUpdateDeclined, doHideModal } from 'redux/actions/app';
|
2022-06-29 01:00:24 +02:00
|
|
|
import { selectAutoUpdateFailed } from 'redux/selectors/app';
|
2018-02-24 01:24:00 +01:00
|
|
|
import ModalAutoUpdateDownloaded from './view';
|
2017-12-08 11:08:50 +01:00
|
|
|
|
2022-06-29 01:00:24 +02:00
|
|
|
const select = (state, props) => ({
|
|
|
|
errorWhileUpdating: selectAutoUpdateFailed(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
2018-10-29 18:23:53 +01:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2018-01-17 11:50:02 +01:00
|
|
|
declineAutoUpdate: () => dispatch(doAutoUpdateDeclined()),
|
2017-12-22 07:42:04 +01:00
|
|
|
});
|
|
|
|
|
2022-06-29 01:00:24 +02:00
|
|
|
export default connect(select, perform)(ModalAutoUpdateDownloaded);
|