Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
const mapStateToProps = state => ({
subs: state.subs.get('github'),
error: state.subs.get('error')
});
const mapDispatchToProps = dispatch => ({
fetchSubs: () => { dispatch(fetchSubs.request()); },
reorderSubs: (fromObj, toObj) => {
dispatch(reorderSubs('github', fromObj, toObj));
}
});
export default connect(mapStateToProps, mapDispatchToProps)(
DragDropContext(Touch({ enableMouseEvents: true }))(Sortable)
);