adaptive autstaffing
This commit is contained in:
1 parent
6cae81f946
commit
2a89ab3d5f
7 files changed
+196
-21
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useState } from "react";
|
||||
import { useNavigate } from "react-router";
|
||||
|
||||
import { apiRequest } from "@api/request";
|
||||
|
||||
@@ -11,6 +12,7 @@ export const useFormValidation = (
|
||||
setLoader,
|
||||
closeModal
|
||||
) => {
|
||||
const navigate = useNavigate();
|
||||
// Состояние формы, содержащее значения полей
|
||||
const [formData, setFormData] = useState(fields);
|
||||
|
||||
@@ -108,6 +110,7 @@ export const useFormValidation = (
|
||||
handleClearForm();
|
||||
showNotificationTrue();
|
||||
closeModal();
|
||||
navigate("/welcome-page");
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("Error submitting form:", error);
|
||||
|
||||
Reference in new issue
Block a user