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}

setModalReset(false)} className="modalConfirmTracker__btn" > diff --git a/src/components/PartnerPersonCard/PartnerPersonCard.jsx b/src/components/PartnerPersonCard/PartnerPersonCard.jsx index 7d7db5b3..0679b42c 100644 --- a/src/components/PartnerPersonCard/PartnerPersonCard.jsx +++ b/src/components/PartnerPersonCard/PartnerPersonCard.jsx @@ -1,23 +1,24 @@ import React from "react"; import { Link } from "react-router-dom"; + import { urlForLocal } from "@utils/helper"; import rightArrow from "assets/icons/arrows/arrowRight.svg"; import "./partnerPersonCard.scss"; -export const PartnerPersonCard = ({name, img, userId}) => { +export const PartnerPersonCard = ({ name, img, userId }) => { return (
- avatar + avatar

{name}

Подробный отчет
- arrow + arrow
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); } }} > - Отправить + Отправить +
img