Feat: User Integration (#92)

This commit is contained in:
Stuart Taylor
2018-05-24 19:45:38 +01:00
committed by Mrugesh Mohapatra
parent a296568e97
commit 10341daeb5
39 changed files with 959 additions and 454 deletions

View File

@@ -11,7 +11,8 @@ import {
const propTypes = {
isFrontEnd: PropTypes.bool,
isSubmitting: PropTypes.bool,
openModal: PropTypes.func.isRequired
openModal: PropTypes.func.isRequired,
updateProjectForm: PropTypes.func.isRequired
};
const frontEndFields = ['solution'];
@@ -35,9 +36,15 @@ const options = {
};
export class ProjectForm extends PureComponent {
componentDidMount() {
this.props.updateProjectForm({});
}
componentDidUpdate() {
this.props.updateProjectForm({});
}
handleSubmit = values => {
this.props.openModal('completion');
console.log(values);
this.props.updateProjectForm(values);
};
render() {