You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/frontend/src/System/Backup/RestoreBackupModalConnector.js

16 lines
403 B

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);