Merge pull request #38 from Bouncey/feat/codeStorage

Feat:  Add code storage and lesson reset modal
This commit is contained in:
Stuart Taylor
2018-05-09 12:40:09 +01:00
committed by Mrugesh Mohapatra
parent 68eefa5565
commit bb6b3869ed
12 changed files with 266 additions and 29 deletions

View File

@@ -28,12 +28,10 @@ const mapDispatchToProps = function(dispatch) {
close: () => dispatch(closeModal('completion')),
handleKeypress: e => {
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
console.log('dispatching');
dispatch(submitChallenge());
}
},
submitChallenge: () => {
console.log('dispatching');
dispatch(submitChallenge());
}
};