mirror of
https://github.com/plankanban/planka.git
synced 2025-12-27 09:14:59 +03:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
22
client/src/containers/UserAddPopupContainer.js
Executable file
22
client/src/containers/UserAddPopupContainer.js
Executable file
@@ -0,0 +1,22 @@
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { clearUserCreateError, createUser } from '../actions/entry';
|
||||
import UserAddPopup from '../components/UserAddPopup';
|
||||
|
||||
const mapStateToProps = ({ userCreateForm: { data: defaultData, isSubmitting, error } }) => ({
|
||||
defaultData,
|
||||
isSubmitting,
|
||||
error,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) =>
|
||||
bindActionCreators(
|
||||
{
|
||||
onCreate: createUser,
|
||||
onMessageDismiss: clearUserCreateError,
|
||||
},
|
||||
dispatch,
|
||||
);
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(UserAddPopup);
|
||||
Reference in New Issue
Block a user