add alerts
This commit is contained in:
parent
deac5ec94d
commit
9b01381af1
@ -23,6 +23,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 65%;
|
width: 65%;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
@media (max-width: 1106px) {
|
@media (max-width: 1106px) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -115,6 +116,8 @@
|
|||||||
.input-container {
|
.input-container {
|
||||||
margin: 0 0 20px 0;
|
margin: 0 0 20px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
|
@ -35,8 +35,8 @@ import arrow from "assets/icons/arrows/arrowCalendar.png";
|
|||||||
import arrowStart from "assets/icons/arrows/arrowStart.png";
|
import arrowStart from "assets/icons/arrows/arrowStart.png";
|
||||||
import arrowDown from "assets/icons/arrows/selectArrow.png";
|
import arrowDown from "assets/icons/arrows/selectArrow.png";
|
||||||
import calendarIcon from "assets/icons/calendar.svg";
|
import calendarIcon from "assets/icons/calendar.svg";
|
||||||
import close from "assets/icons/crossWhite.svg";
|
|
||||||
import fileDelete from "assets/icons/closeProjectPersons.svg";
|
import fileDelete from "assets/icons/closeProjectPersons.svg";
|
||||||
|
import close from "assets/icons/crossWhite.svg";
|
||||||
import del from "assets/icons/delete.svg";
|
import del from "assets/icons/delete.svg";
|
||||||
import edit from "assets/icons/edit.svg";
|
import edit from "assets/icons/edit.svg";
|
||||||
import file from "assets/icons/fileModal.svg";
|
import file from "assets/icons/fileModal.svg";
|
||||||
|
@ -125,6 +125,11 @@ export const TrackerModal = ({
|
|||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
dispatch(setProjectBoardFetch(projectBoard.id));
|
dispatch(setProjectBoardFetch(projectBoard.id));
|
||||||
|
showNotification({
|
||||||
|
show: true,
|
||||||
|
text: "Колонка создана",
|
||||||
|
type: "success"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
setValueColumn("");
|
setValueColumn("");
|
||||||
setActive(false);
|
setActive(false);
|
||||||
@ -219,6 +224,11 @@ export const TrackerModal = ({
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
setActive(false);
|
setActive(false);
|
||||||
dispatch(editProjectName({ id: projectId, name: projectName }));
|
dispatch(editProjectName({ id: projectId, name: projectName }));
|
||||||
|
showNotification({
|
||||||
|
show: true,
|
||||||
|
text: "Название проекта успешно изменено",
|
||||||
|
type: "success"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,6 +279,11 @@ export const TrackerModal = ({
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
setActive(false);
|
setActive(false);
|
||||||
dispatch(editColumnName({ id: columnId, title: columnName }));
|
dispatch(editColumnName({ id: columnId, title: columnName }));
|
||||||
|
showNotification({
|
||||||
|
show: true,
|
||||||
|
text: "Колонка создана",
|
||||||
|
type: "success"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -323,6 +338,11 @@ export const TrackerModal = ({
|
|||||||
}).then((el) => {
|
}).then((el) => {
|
||||||
setActive(false);
|
setActive(false);
|
||||||
setEmailWorker("");
|
setEmailWorker("");
|
||||||
|
showNotification({
|
||||||
|
show: true,
|
||||||
|
text: "Приглашение отправлено",
|
||||||
|
type: "success"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,6 +68,11 @@ export const ProjectTicket = ({ project, index }) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// showNotification({
|
||||||
|
// show: true,
|
||||||
|
// text: "Проект успешно удален",
|
||||||
|
// type: "success"
|
||||||
|
// });
|
||||||
|
|
||||||
function closeAcceptModal() {
|
function closeAcceptModal() {
|
||||||
setAcceptModalOpen(false);
|
setAcceptModalOpen(false);
|
||||||
@ -135,7 +140,16 @@ export const ProjectTicket = ({ project, index }) => {
|
|||||||
<img src={edit}></img>
|
<img src={edit}></img>
|
||||||
<p>редактировать</p>
|
<p>редактировать</p>
|
||||||
</div>
|
</div>
|
||||||
<div onClick={() => copyProjectLink(project.id)}>
|
<div
|
||||||
|
onClick={() => {
|
||||||
|
copyProjectLink(project.id);
|
||||||
|
showNotification({
|
||||||
|
show: true,
|
||||||
|
text: "Ссылка скопирована в буфер обмена",
|
||||||
|
type: "copy"
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
<img src={link}></img>
|
<img src={link}></img>
|
||||||
<p>скопировать ссылку</p>
|
<p>скопировать ссылку</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
|
||||||
import { Loader } from "@components/common/Loader/Loader";
|
|
||||||
|
|
||||||
import { selectUserInfo } from "@redux/quizSlice";
|
import { selectUserInfo } from "@redux/quizSlice";
|
||||||
|
|
||||||
import { urlForLocal } from "@utils/helper";
|
import { urlForLocal } from "@utils/helper";
|
||||||
|
|
||||||
|
import { Loader } from "@components/common/Loader/Loader";
|
||||||
|
|
||||||
// import { apiRequest } from "@api/request";
|
// import { apiRequest } from "@api/request";
|
||||||
import "./quiz.scss";
|
import "./quiz.scss";
|
||||||
|
|
||||||
|
@ -6,10 +6,11 @@ import { selectedTest } from "@redux/quizSlice";
|
|||||||
|
|
||||||
import { apiRequest } from "@api/request";
|
import { apiRequest } from "@api/request";
|
||||||
|
|
||||||
|
import { Loader } from "@components/common/Loader/Loader";
|
||||||
|
|
||||||
import comment from "assets/icons/comment.jpg";
|
import comment from "assets/icons/comment.jpg";
|
||||||
|
|
||||||
import "./quiz.scss";
|
import "./quiz.scss";
|
||||||
import { Loader } from "@components/common/Loader/Loader";
|
|
||||||
|
|
||||||
export const Instruction = () => {
|
export const Instruction = () => {
|
||||||
const [countQuestions, setCountQuestions] = useState(null);
|
const [countQuestions, setCountQuestions] = useState(null);
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
|
|
||||||
import { Loader } from "@components/common/Loader/Loader";
|
|
||||||
|
|
||||||
import { fetchResultTest, selectResult, selectedTest } from "@redux/quizSlice";
|
import { fetchResultTest, selectResult, selectedTest } from "@redux/quizSlice";
|
||||||
|
|
||||||
import { apiRequest } from "@api/request";
|
import { apiRequest } from "@api/request";
|
||||||
|
|
||||||
|
import { Loader } from "@components/common/Loader/Loader";
|
||||||
|
|
||||||
export const Results = () => {
|
export const Results = () => {
|
||||||
const result = useSelector(selectResult);
|
const result = useSelector(selectResult);
|
||||||
const test = useSelector(selectedTest);
|
const test = useSelector(selectedTest);
|
||||||
|
Loading…
Reference in New Issue
Block a user