@dac-software/forms-pl
Advanced tools
Comparing version 1.0.7-QP-561-forms-refactor.0 to 1.0.7-QP-561-forms-refactor.1
@@ -9,2 +9,3 @@ import React, { useCallback } from 'react'; | ||
import useComponent from './hook'; | ||
import doNothing from '../../utils/doNothing'; | ||
const Form = ({ setFormSubmitting, hasOffer }) => { | ||
@@ -39,2 +40,5 @@ const { t } = useTranslation(); | ||
}; | ||
Form.defaultProps = { | ||
setFormSubmitting: (submitting = true) => doNothing() | ||
}; | ||
export default Form; |
@@ -33,2 +33,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
validationSchema: prepareFormValidation(), | ||
validateOnChange: false, | ||
onSubmit: (values, { resetForm }) => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -35,0 +36,0 @@ setFormSubmitting(true); |
{ | ||
"name": "@dac-software/forms-pl", | ||
"version": "1.0.7-QP-561-forms-refactor.0", | ||
"version": "1.0.7-QP-561-forms-refactor.1", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "main": "dist/forms-pl", |
Sorry, the diff of this file is too big to display
356295
383