Merge pull request #39 from Bouncey/fix/completiongModal

All challenge views use CompletionModal
This commit is contained in:
Stuart Taylor
2018-05-09 13:27:42 +01:00
committed by Mrugesh Mohapatra
parent bb6b3869ed
commit 71e7026212
4 changed files with 29 additions and 10 deletions

View File

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