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.
16 lines
480 B
16 lines
480 B
6 years ago
|
import { connect } from 'react-redux';
|
||
|
import { cancelFetchReleases, clearReleases } from 'Store/Actions/releaseActions';
|
||
|
import AlbumInteractiveSearchModal from './AlbumInteractiveSearchModal';
|
||
|
|
||
|
function createMapDispatchToProps(dispatch, props) {
|
||
|
return {
|
||
|
onModalClose() {
|
||
|
dispatch(cancelFetchReleases());
|
||
|
dispatch(clearReleases());
|
||
|
props.onModalClose();
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export default connect(null, createMapDispatchToProps)(AlbumInteractiveSearchModal);
|