From cf1bbf136e66b869ac46b21830832c4a9fde0e1e Mon Sep 17 00:00:00 2001
From: Mikola
Date: Thu, 1 Feb 2024 23:14:42 +0300
Subject: [PATCH] catalogSpecialists
---
.../ModalTrackerRegistration.js | 4 +--
.../PartnerPersonCard/PartnerPersonCard.jsx | 7 +++--
.../TrackerRegistration.js | 30 +++++++++----------
3 files changed, 20 insertions(+), 21 deletions(-)
diff --git a/src/components/Modal/ModalTrackerRegistration/ModalTrackerRegistration.js b/src/components/Modal/ModalTrackerRegistration/ModalTrackerRegistration.js
index fb609a3e..ef6f7ed9 100644
--- a/src/components/Modal/ModalTrackerRegistration/ModalTrackerRegistration.js
+++ b/src/components/Modal/ModalTrackerRegistration/ModalTrackerRegistration.js
@@ -1,6 +1,6 @@
import React from "react";
-
import { Link } from "react-router-dom";
+
import close from "assets/icons/closeProjectPersons.svg";
import "./modalTrackerRegistration.scss";
@@ -18,7 +18,7 @@ export const ModalTrackerRegistration = ({ setModalReset, email }) => {
{email}
-
+
{name}
Подробный отчет
-
+
diff --git a/src/pages/TrackerRegistration/TrackerRegistration.js b/src/pages/TrackerRegistration/TrackerRegistration.js
index 76bd9d82..91e6262c 100644
--- a/src/pages/TrackerRegistration/TrackerRegistration.js
+++ b/src/pages/TrackerRegistration/TrackerRegistration.js
@@ -1,13 +1,14 @@
import React, { useState } from "react";
+import { Navigate } from "react-router-dom";
+
+import { useFormValidation } from "@hooks/useFormValidation";
+import { useNotification } from "@hooks/useNotification";
import AuthHeader from "@components/Common/AuthHeader/AuthHeader";
import { Footer } from "@components/Common/Footer/Footer";
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
import { ModalTrackerRegistration } from "@components/Modal/ModalTrackerRegistration/ModalTrackerRegistration";
import SideBar from "@components/SideBar/SideBar";
-import { useFormValidation } from "@hooks/useFormValidation";
-import { useNotification } from "@hooks/useNotification";
-import { Navigate } from "react-router-dom";
import arrowInfo from "assets/icons/trackerIntroInfo.svg";
import authImg from "assets/images/partnerProfile/authCandidateFormImg.png";
@@ -42,17 +43,13 @@ export const TrackerRegistration = () => {
});
};
- const {
- formData,
- validationErrors,
- handleChange,
- handleSubmit,
- } = useFormValidation(
- apiEndpoint,
- fields,
- showNotificationError,
- showNotificationTrue,
- );
+ const { formData, validationErrors, handleChange, handleSubmit } =
+ useFormValidation(
+ apiEndpoint,
+ fields,
+ showNotificationError,
+ showNotificationTrue
+ );
return (
@@ -123,11 +120,12 @@ export const TrackerRegistration = () => {
e.preventDefault();
const result = await handleSubmit(e);
if (result === true) {
- setModalConfirm(true)
+ setModalConfirm(true);
}
}}
>
- Отправить
+ Отправить
+