Save
Your doodle will be saved in the local storage of your web browser.
Make sure to make a backup (see export menu) of your doodles every once in a while.
{error &&
error
}
);
}
}
const formName = 'save';
const selector = formValueSelector(formName);
export default connect(state => ({
fileName: selector(state, "fileName"),
initialValues: { fileName: currentFileName(state) || '' }
}), (dispatch) => ({
downloadCurrentSketch: (fileName) => dispatch(actions.files.downloadCurrentSketch(fileName)),
submit: () => dispatch(startSubmit(formName)),
save: (fileName) => dispatch(actions.files.saveFile(fileName)),
onClose: () => dispatch(actions.router.push('/'))
}))(reduxForm({
form: formName,
onSubmit
})(injectSheet(style)(Save)));