From 7896b5e2c9ff19602a7129b519470182c138e0f7 Mon Sep 17 00:00:00 2001 From: Leonardo Negreiros de Oliveira Date: Mon, 19 Feb 2024 15:23:43 -0300 Subject: [PATCH] Remove nested form tag --- frontend/package-lock.json | 14 +++++++------- frontend/package.json | 2 +- .../src/app/tasks/components/SaveTemplateModal.tsx | 1 - frontend/src/ui/SubmitButton/SubmitButton.tsx | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 49c22b305..45facf0b4 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -14,7 +14,7 @@ "@mui/joy": "^5.0.0-beta.20", "@tanstack/react-query": "^4.35.3", "@testing-library/user-event": "^14.5.1", - "@types/react": "18.2.23", + "@types/react": "18.2.57", "@types/react-dom": "18.2.19", "date-fns": "^2.30.0", "eslint": "8.49.0", @@ -2280,9 +2280,9 @@ "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" }, "node_modules/@types/react": { - "version": "18.2.23", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.23.tgz", - "integrity": "sha512-qHLW6n1q2+7KyBEYnrZpcsAmU/iiCh9WGCKgXvMxx89+TYdJWRjZohVIo9XTcoLhfX3+/hP0Pbulu3bCZQ9PSA==", + "version": "18.2.57", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.57.tgz", + "integrity": "sha512-ZvQsktJgSYrQiMirAN60y4O/LRevIV8hUzSOSNB6gfR3/o3wCBFQx3sPwIYtuDMeiVgsSS3UzCV26tEzgnfvQw==", "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -10092,9 +10092,9 @@ "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==" }, "@types/react": { - "version": "18.2.23", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.23.tgz", - "integrity": "sha512-qHLW6n1q2+7KyBEYnrZpcsAmU/iiCh9WGCKgXvMxx89+TYdJWRjZohVIo9XTcoLhfX3+/hP0Pbulu3bCZQ9PSA==", + "version": "18.2.57", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.57.tgz", + "integrity": "sha512-ZvQsktJgSYrQiMirAN60y4O/LRevIV8hUzSOSNB6gfR3/o3wCBFQx3sPwIYtuDMeiVgsSS3UzCV26tEzgnfvQw==", "requires": { "@types/prop-types": "*", "@types/scheduler": "*", diff --git a/frontend/package.json b/frontend/package.json index e27458158..cd6ee8c2d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -17,7 +17,7 @@ "@mui/joy": "^5.0.0-beta.20", "@tanstack/react-query": "^4.35.3", "@testing-library/user-event": "^14.5.1", - "@types/react": "18.2.23", + "@types/react": "18.2.57", "@types/react-dom": "18.2.19", "date-fns": "^2.30.0", "eslint": "8.49.0", diff --git a/frontend/src/app/tasks/components/SaveTemplateModal.tsx b/frontend/src/app/tasks/components/SaveTemplateModal.tsx index 044bc95e2..a41de004b 100644 --- a/frontend/src/app/tasks/components/SaveTemplateModal.tsx +++ b/frontend/src/app/tasks/components/SaveTemplateModal.tsx @@ -35,7 +35,6 @@ export const SaveTemplateModal = ({ task }: SaveAsTemplateProps) => { variant="outlined" component="form" action={async (formData: FormData) => { - console.log('test') const template = await createTemplate(task, formData) if (template.error) { showError(template.error) diff --git a/frontend/src/ui/SubmitButton/SubmitButton.tsx b/frontend/src/ui/SubmitButton/SubmitButton.tsx index 7a3f60418..337d3d39a 100644 --- a/frontend/src/ui/SubmitButton/SubmitButton.tsx +++ b/frontend/src/ui/SubmitButton/SubmitButton.tsx @@ -1,4 +1,4 @@ -import { experimental_useFormStatus as useFormStatus } from 'react-dom' +import { useFormStatus } from 'react-dom' import { Button } from '@mui/joy' import { PropsWithChildren } from 'react' import { SxProps } from '@mui/joy/styles/types'