mirror of https://github.com/Radarr/Radarr
16 lines
403 B
JavaScript
16 lines
403 B
JavaScript
![]() |
import { connect } from 'react-redux';
|
||
|
import { clearRestoreBackup } from 'Store/Actions/systemActions';
|
||
|
import RestoreBackupModal from './RestoreBackupModal';
|
||
|
|
||
|
function createMapDispatchToProps(dispatch, props) {
|
||
|
return {
|
||
|
onModalClose() {
|
||
|
dispatch(clearRestoreBackup());
|
||
|
|
||
|
props.onModalClose();
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export default connect(null, createMapDispatchToProps)(RestoreBackupModal);
|