mirror of
https://github.com/plankanban/planka.git
synced 2025-07-21 06:09:43 +02:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
parent
2d92ade8dc
commit
c6ee7d54bb
190 changed files with 2144 additions and 1817 deletions
21
client/src/containers/ProjectAddModalContainer.js
Executable file
21
client/src/containers/ProjectAddModalContainer.js
Executable file
|
@ -0,0 +1,21 @@
|
|||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { closeModal, createProject } from '../actions/entry';
|
||||
import ProjectAddModal from '../components/ProjectAddModal';
|
||||
|
||||
const mapStateToProps = ({ projectCreateForm: { data: defaultData, isSubmitting } }) => ({
|
||||
defaultData,
|
||||
isSubmitting,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) =>
|
||||
bindActionCreators(
|
||||
{
|
||||
onCreate: createProject,
|
||||
onClose: closeModal,
|
||||
},
|
||||
dispatch,
|
||||
);
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(ProjectAddModal);
|
Loading…
Add table
Add a link
Reference in a new issue