diff --git a/package.json b/package.json index 2008bc5..3af4084 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "deploy": "npm run build-storybook && gh-pages -d build-sb", "preversion": "npm run clean && npm run build && npm run deploy", "postversion": "git push && git push --tags && npm publish", - "format": "prettier --write --trailing-comma es5 --single-quote 'src/**/*' 'test/**/*' 'README.md' '/docs/**/*.md'", - "format:check": "prettier --check --trailing-comma es5 --single-quote 'src/**/*' 'test/**/*' 'README.md' '/docs/**/*.md'", + "format": "prettier --write --trailing-comma es5 --single-quote 'src/**/*' 'README.md'", + "format:check": "prettier --check --trailing-comma es5 --single-quote 'src/**/*' 'README.md'", "test": "jest" }, "publishConfig": { diff --git a/src/FormikPanel.tsx b/src/FormikPanel.tsx index c12d227..10da105 100644 --- a/src/FormikPanel.tsx +++ b/src/FormikPanel.tsx @@ -110,7 +110,7 @@ type Values = any; export const FormikPanel = memo(({ active }: { active?: boolean }) => { const [formikState, setFormikState] = useState>>( - {}, + {} ); const [submittedValues, setSubmittedValues] = useState([]); @@ -123,7 +123,7 @@ export const FormikPanel = memo(({ active }: { active?: boolean }) => { [EVT_ON_SUBMIT]: async (values: Values) => await setSubmittedValues([...submittedValues, values]), }, - [], + [] ); const { values, errors, touched, isValidating, isSubmitting, submitCount } =