mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
14 lines
376 B
JavaScript
14 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);
|