Add form active status check and redirection

Introduced `FormActiveRedirect` component to check if forms are active before rendering. Updated form data to include `backendFormName` and adjusted routes in `App.tsx` to use the new component. This ensures that inactive forms redirect users with a relevant message.
This commit is contained in:
2024-08-10 03:10:25 +02:00
parent 21e23b98ad
commit 75559af7c8
6 changed files with 43 additions and 3 deletions
+1
View File
@@ -11,6 +11,7 @@ const GenericForm = (formData: FormData) => {
const backend: string = formData.backend;
const userInput: UserInput = formData.userInput;
const spec: Yup.Schema<any> = formData.spec;
const backendFormname = formData.backendFormName
const navigate = useNavigate();