diff --git a/src/components/Calendar/calendarComponent.scss b/src/components/Calendar/calendarComponent.scss index ccb79276..ff8e4618 100644 --- a/src/components/Calendar/calendarComponent.scss +++ b/src/components/Calendar/calendarComponent.scss @@ -1,6 +1,6 @@ .calendar-component { position: relative; - margin: 30px 0; + margin: 10px 0; background-color: #f9f9f9; padding: 20px 30px; font-family: "LabGrotesque", sans-serif; @@ -94,7 +94,7 @@ } &__rectangle { - margin: 20px 0; + margin: 10px 0; img { width: 100%; diff --git a/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx b/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx index 1f0a413e..c918c9d6 100644 --- a/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx +++ b/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx @@ -70,6 +70,7 @@ export const TrackerModal = ({ const [workers, setWorkers] = useState([]); const [selectWorkersOpen, setSelectWorkersOpen] = useState(false); const [selectedWorker, setSelectedWorker] = useState(null); + const [emailWorker, setEmailWorker] = useState(""); const [selectColumnPriority, setSelectColumnPriority] = useState( "Выберите приоритет колонки" ); @@ -305,6 +306,19 @@ export const TrackerModal = ({ }); } + function inviteUserByEmail() { + apiRequest("/project/add-user-by-email", { + method: "POST", + data: { + email: emailWorker, + project_id: projectBoard.id + } + }).then((el) => { + setActive(false); + setEmailWorker(""); + }); + } + useEffect(() => { modalType === "add-worker" ? apiRequest("/project/my-employee").then((el) => { @@ -386,26 +400,12 @@ export const TrackerModal = ({ }; return ( - { - // setSelectWorkersOpen(false); - // }} - > + {modalType === "add-worker" && ( <>

Добавьте участника

- {/*
*/} - {/* setEmailWorker(e.target.value)}*/} - {/* />*/} - {/*
*/}

Выберите пользователя в проекте или добавьте по e-mail

@@ -468,9 +468,14 @@ export const TrackerModal = ({ className="name-project" placeholder="e-mail" type="email" + value={emailWorker} + onChange={(e) => setEmailWorker(e.target.value)} />
- + Отправить приглашение
@@ -494,11 +499,6 @@ export const TrackerModal = ({ alt="avatar" /> - {/*Этап*/} - {/*
*/} - {/* Backlog*/} - {/* arrow*/} - {/*
*/}