mirror of
https://github.com/Sonarr/Sonarr
synced 2026-01-16 04:21:32 +01:00
13 lines
376 B
JavaScript
13 lines
376 B
JavaScript
import { connect } from 'react-redux';
|
|
import { deleteRootFolder } from 'Store/Actions/rootFolderActions';
|
|
import RootFolderRow from './RootFolderRow';
|
|
|
|
function createMapDispatchToProps(dispatch, props) {
|
|
return {
|
|
onDeletePress() {
|
|
dispatch(deleteRootFolder({ id: props.id }));
|
|
}
|
|
};
|
|
}
|
|
|
|
export default connect(null, createMapDispatchToProps)(RootFolderRow);
|