mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
Initial commit
This commit is contained in:
commit
36fe34e8e1
583 changed files with 91539 additions and 0 deletions
28
client/src/containers/UsersModalContainer.js
Executable file
28
client/src/containers/UsersModalContainer.js
Executable file
|
@ -0,0 +1,28 @@
|
|||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { allUsersExceptCurrentSelector } from '../selectors';
|
||||
import { closeModal, deleteUser, updateUser } from '../actions/entry';
|
||||
import UsersModal from '../components/UsersModal';
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
const items = allUsersExceptCurrentSelector(state);
|
||||
|
||||
return {
|
||||
items,
|
||||
};
|
||||
};
|
||||
|
||||
const mapDispatchToProps = (dispatch) => bindActionCreators(
|
||||
{
|
||||
onUpdate: updateUser,
|
||||
onDelete: deleteUser,
|
||||
onClose: closeModal,
|
||||
},
|
||||
dispatch,
|
||||
);
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps,
|
||||
)(UsersModal);
|
Loading…
Add table
Add a link
Reference in a new issue