From 4b8df4e7dc9f1c2bf6f57df506830c9dff324c95 Mon Sep 17 00:00:00 2001 From: Heinrich Grobler Date: Fri, 15 Nov 2024 11:07:27 +0200 Subject: [PATCH] fixed formatting --- package.json | 4 ++-- src/FormikPanel.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 } =