@@ -105,11 +105,11 @@ export const PartnerSettings = () => {
onChange={(e) => {
setInputsValue((prevValue) => ({
...prevValue,
- name: e.target.value,
+ name: e.target.value
}));
setInputsError((prevValue) => ({
...prevValue,
- name: false,
+ name: false
}));
}}
value={inputsValue.name}
@@ -128,11 +128,11 @@ export const PartnerSettings = () => {
onChange={(e) => {
setInputsValue((prevValue) => ({
...prevValue,
- oldPassword: e.target.value,
+ oldPassword: e.target.value
}));
setInputsError((prevValue) => ({
...prevValue,
- password: false,
+ password: false
}));
}}
value={inputsValue.oldPassword}
@@ -149,11 +149,11 @@ export const PartnerSettings = () => {
onChange={(e) => {
setInputsValue((prevValue) => ({
...prevValue,
- password: e.target.value,
+ password: e.target.value
}));
setInputsError((prevValue) => ({
...prevValue,
- password: false,
+ password: false
}));
}}
value={inputsValue.password}
diff --git a/src/pages/PartnerTreaties/PartnerTreaties.js b/src/pages/PartnerTreaties/PartnerTreaties.js
index 8b6235ad..28e0580e 100644
--- a/src/pages/PartnerTreaties/PartnerTreaties.js
+++ b/src/pages/PartnerTreaties/PartnerTreaties.js
@@ -31,7 +31,7 @@ export const PartnerTreaties = () => {
diff --git a/src/pages/PartnerСategories/PartnerСategories.jsx b/src/pages/PartnerСategories/PartnerСategories.jsx
index 87a8697d..c31870b1 100644
--- a/src/pages/PartnerСategories/PartnerСategories.jsx
+++ b/src/pages/PartnerСategories/PartnerСategories.jsx
@@ -37,7 +37,7 @@ export const PartnerCategories = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: true,
- img: BackEndImg,
+ img: BackEndImg
},
{
title: "Frontend разработчики",
@@ -45,14 +45,14 @@ export const PartnerCategories = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: true,
- img: FrontendImg,
+ img: FrontendImg
},
{
title: "Архитектура проектов",
link: "/profile/categories/employees",
description: "Потоки данных ER ERP CRM CQRS UML BPMN",
available: true,
- img: ArchitectureImg,
+ img: ArchitectureImg
},
{
title: "Дизайн проектов",
@@ -60,35 +60,35 @@ export const PartnerCategories = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: true,
- img: DesignImg,
+ img: DesignImg
},
{
title: "Тестирование проектов",
link: "/profile/add-request",
description: "SQL Postman TestRail Kibana Ручное тестирование",
available: false,
- img: TestImg,
+ img: TestImg
},
{
title: "Администрирование проектов",
link: "/profile/add-request",
description: "DevOps ELK Kubernetes Docker Bash Apache Oracle Git",
available: false,
- img: AdminImg,
+ img: AdminImg
},
{
title: "Управление проектом",
link: "/profile/add-request",
description: "Scrum Kanban Agile Miro CustDev",
available: false,
- img: ManageImg,
+ img: ManageImg
},
{
title: "Копирайтинг проектов",
link: "/profile/add-request",
description: "Теги Заголовок H1 Дескриптор Абзац Сценарий",
available: false,
- img: CopyImg,
+ img: CopyImg
},
{
title: "Реклама и SMM",
@@ -96,8 +96,8 @@ export const PartnerCategories = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: false,
- img: SmmImg,
- },
+ img: SmmImg
+ }
]);
const [mokPersons] = useState([
@@ -109,7 +109,7 @@ export const PartnerCategories = () => {
project: "Админка НВД Консалтинг",
tasks_in_progress: 5,
month_hours: 140,
- id: 1,
+ id: 1
},
{
personAvatar: avatarImg,
@@ -119,7 +119,7 @@ export const PartnerCategories = () => {
project: "Админка НВД Консалтинг",
tasks_in_progress: 5,
month_hours: 140,
- id: 2,
+ id: 2
},
{
personAvatar: avatarImg,
@@ -129,8 +129,8 @@ export const PartnerCategories = () => {
project: "Админка НВД Консалтинг",
tasks_in_progress: 5,
month_hours: 140,
- id: 3,
- },
+ id: 3
+ }
]);
return (
@@ -140,7 +140,7 @@ export const PartnerCategories = () => {
Данные персонала
diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js
index c731c651..0b654c18 100644
--- a/src/pages/Profile/Profile.js
+++ b/src/pages/Profile/Profile.js
@@ -31,32 +31,32 @@ export const Profile = () => {
path: "profile/calendar",
img: reportsIcon,
title: "Ваша отчетность",
- description: "
Отработанных в этом месяце часов",
+ description: "
Отработанных в этом месяце часов"
},
{
path: "profile/summary",
img: summaryIcon,
title: "Резюме",
- description: "Ваше резюме
заполнено",
+ description: "Ваше резюме
заполнено"
},
{
path: "profile/tracker",
img: timerIcon,
title: "Трекер времени",
- description: "Сколько времени занимает
выполнение задач",
+ description: "Сколько времени занимает
выполнение задач"
},
{
path: "profile/payouts",
img: paymentIcon,
title: "Выплаты",
- description: "У вас
подтвержден статус самозанятого",
+ description: "У вас
подтвержден статус самозанятого"
},
{
path: "profile/settings",
img: settingIcon,
title: "Настройки профиля",
- description: "Перейдите чтобы начать
редактирование",
- },
+ description: "Перейдите чтобы начать
редактирование"
+ }
],
partner: [
{
@@ -64,33 +64,33 @@ export const Profile = () => {
img: reportsIcon,
title: "Запросы и открытые позиции",
description:
- "
У вас 2 вакансии
открытые от лица компании",
+ "
У вас 2 вакансии
открытые от лица компании"
},
{
path: "profile/categories",
img: summaryIcon,
title: "Данные персонала",
- description: "Наши специалисты
уже работающие у вас",
+ description: "Наши специалисты
уже работающие у вас"
},
{
path: "profile/tracker",
img: timerIcon,
title: "Трекер времени",
- description: "Контроль времени и
выполнение задач",
+ description: "Контроль времени и
выполнение задач"
},
{
path: "profile/treaties",
img: paymentIcon,
title: "Договора и отчетность",
- description: "Ключевые условия
договора",
+ description: "Ключевые условия
договора"
},
{
path: "profile/settings",
img: settingIcon,
title: "Настройки профиля",
- description: "Перейдите чтобы начать
редактирование",
- },
- ],
+ description: "Перейдите чтобы начать
редактирование"
+ }
+ ]
});
return (
diff --git a/src/pages/ProfileCandidate/ProfileCandidate.js b/src/pages/ProfileCandidate/ProfileCandidate.js
index 1402f82b..e3003f1a 100644
--- a/src/pages/ProfileCandidate/ProfileCandidate.js
+++ b/src/pages/ProfileCandidate/ProfileCandidate.js
@@ -20,14 +20,14 @@ export const ProfileCandidate = () => {
path: "quiz",
img: reportsIcon,
title: "Мои тесты",
- description: "
У вас 122 часа
отработанных в этом месяце",
+ description: "
У вас 122 часа
отработанных в этом месяце"
},
{
path: "profile/settings",
img: settingIcon,
title: "Настройки профиля",
- description: "Перейдите чтобы начать редактирование",
- },
+ description: "Перейдите чтобы начать редактирование"
+ }
]);
return (
diff --git a/src/pages/ProjectTracker/ProjectTracker.js b/src/pages/ProjectTracker/ProjectTracker.js
index 3510b598..e942d4fd 100644
--- a/src/pages/ProjectTracker/ProjectTracker.js
+++ b/src/pages/ProjectTracker/ProjectTracker.js
@@ -20,7 +20,7 @@ import {
setColumnName,
setColumnPriority,
setProjectBoardFetch,
- setToggleTab,
+ setToggleTab
} from "@redux/projectsTrackerSlice";
import { urlForLocal } from "@utils/helper";
@@ -73,7 +73,7 @@ export const ProjectTracker = () => {
const [tags, setTags] = useState({
open: false,
add: false,
- edit: false,
+ edit: false
});
const [acceptModalOpen, setAcceptModalOpen] = useState(false);
const [currentColumnDelete, setCurrentColumnDelete] = useState(null);
@@ -93,13 +93,13 @@ export const ProjectTracker = () => {
const priority = {
2: "Высокий",
1: "Средний",
- 0: "Низкий",
+ 0: "Низкий"
};
const priorityClass = {
2: "high",
1: "middle",
- 0: "low",
+ 0: "low"
};
useEffect(() => {
@@ -117,7 +117,7 @@ export const ProjectTracker = () => {
if (column.tasks.length) columnsTasksEmpty = false;
setOpenColumnSelect((prevState) => ({
...prevState,
- [column.id]: false,
+ [column.id]: false
}));
columnHover[column.id] = false;
column.tasks.forEach((task) => (tasksHover[task.id] = false));
@@ -154,7 +154,7 @@ export const ProjectTracker = () => {
function dragEndTaskHandler() {
setTaskHover((prevState) => ({ [prevState]: false }));
setWrapperHover((prevState) => ({
- [prevState]: false,
+ [prevState]: false
}));
}
@@ -168,7 +168,7 @@ export const ProjectTracker = () => {
movePositionProjectTask({
startTask: startWrapperIndexTest.current.task,
finishTask: task,
- finishIndex: finishTask,
+ finishIndex: finishTask
})
);
}
@@ -184,7 +184,7 @@ export const ProjectTracker = () => {
setWrapperHover((prevState) => ({
[prevState]: false,
- [columnId]: true,
+ [columnId]: true
}));
}
@@ -192,7 +192,7 @@ export const ProjectTracker = () => {
e.preventDefault();
setWrapperHover((prevState) => ({
- [prevState]: false,
+ [prevState]: false
}));
if (
@@ -206,7 +206,7 @@ export const ProjectTracker = () => {
dispatch(
moveProjectTask({
startWrapperIndex: startWrapperIndexTest.current,
- columnId,
+ columnId
})
);
}
@@ -234,14 +234,14 @@ export const ProjectTracker = () => {
data: {
column_id: column.id,
project_id: projectBoard.id,
- status: 0,
- },
+ status: 0
+ }
}).then(() => {
if (column.priority < projectBoard.columns.length) {
for (let i = column.priority; i < projectBoard.columns.length; i++) {
const currentColumn = {
column_id: projectBoard.columns[i].id,
- priority: i,
+ priority: i
};
priorityColumns.push(currentColumn);
}
@@ -249,8 +249,8 @@ export const ProjectTracker = () => {
method: "POST",
data: {
project_id: projectBoard.id,
- data: JSON.stringify(priorityColumns),
- },
+ data: JSON.stringify(priorityColumns)
+ }
}).then(() => {
dispatch(setProjectBoardFetch(projectBoard.id));
});
@@ -266,8 +266,8 @@ export const ProjectTracker = () => {
method: "DELETE",
data: {
project_id: projectBoard.id,
- user_id: userId,
- },
+ user_id: userId
+ }
}).then(() => {
dispatch(deletePersonOnProject(userId));
});
@@ -316,21 +316,21 @@ export const ProjectTracker = () => {
title: tagInfo.description,
slug: tagInfo.name,
color: color,
- status: 1,
- },
+ status: 1
+ }
}).then((data) => {
apiRequest("/mark/attach", {
method: "POST",
data: {
mark_id: data.id,
entity_type: 1,
- entity_id: projectId.id,
- },
+ entity_id: projectId.id
+ }
}).then((data) => {
dispatch(addNewTagToProject(data.mark));
setTags((prevState) => ({
...prevState,
- add: false,
+ add: false
}));
});
});
@@ -343,13 +343,13 @@ export const ProjectTracker = () => {
mark_id: tagInfo.editMarkId,
title: tagInfo.description,
slug: tagInfo.name,
- color: color,
- },
+ color: color
+ }
}).then(() => {
dispatch(setProjectBoardFetch(projectId.id));
setTags((prevState) => ({
...prevState,
- edit: false,
+ edit: false
}));
setTagInfo({ description: "", name: "" });
setColor("#aabbcc");
@@ -362,8 +362,8 @@ export const ProjectTracker = () => {
data: {
mark_id: tagId,
entity_type: 1,
- entity_id: projectId.id,
- },
+ entity_id: projectId.id
+ }
}).then(() => {
dispatch(deleteTagProject(tagId));
});
@@ -412,11 +412,11 @@ export const ProjectTracker = () => {
setTags({
open: false,
add: false,
- edit: false,
+ edit: false
});
setTagInfo({
description: "",
- name: "",
+ name: ""
});
setColor("#aabbcc");
}
@@ -453,7 +453,7 @@ export const ProjectTracker = () => {
Управление проектами с трекером
@@ -705,7 +705,7 @@ export const ProjectTracker = () => {
onClick={() => {
setTags((prevState) => ({
...prevState,
- open: !tags.open,
+ open: !tags.open
}));
}}
>
@@ -719,7 +719,7 @@ export const ProjectTracker = () => {
onClick={() =>
setTags((prevState) => ({
...prevState,
- add: true,
+ add: true
}))
}
>
@@ -751,12 +751,12 @@ export const ProjectTracker = () => {
onClick={() => {
setTags((prevState) => ({
...prevState,
- edit: true,
+ edit: true
}));
setTagInfo({
description: tag.title,
name: tag.slug,
- editMarkId: tag.id,
+ editMarkId: tag.id
});
setColor(tag.color);
}}
@@ -784,11 +784,11 @@ export const ProjectTracker = () => {
setTags((prevState) => ({
...prevState,
add: false,
- edit: false,
+ edit: false
}));
setTagInfo({
description: "",
- name: "",
+ name: ""
});
setColor("#aabbcc");
}}
@@ -801,7 +801,7 @@ export const ProjectTracker = () => {
onChange={(e) =>
setTagInfo((prevState) => ({
...prevState,
- description: e.target.value,
+ description: e.target.value
}))
}
/>
@@ -813,7 +813,7 @@ export const ProjectTracker = () => {
onChange={(e) =>
setTagInfo((prevState) => ({
...prevState,
- name: e.target.value,
+ name: e.target.value
}))
}
/>
@@ -890,7 +890,7 @@ export const ProjectTracker = () => {
onClick={() => {
setOpenColumnSelect((prevState) => ({
...prevState,
- [column.id]: true,
+ [column.id]: true
}));
}}
className="more"
@@ -906,7 +906,7 @@ export const ProjectTracker = () => {
onClick={() => {
setOpenColumnSelect((prevState) => ({
...prevState,
- [column.id]: false,
+ [column.id]: false
}));
dispatch(modalToggle("editColumn"));
dispatch(setColumnName(column.title));
@@ -970,7 +970,7 @@ export const ProjectTracker = () => {
diff --git a/src/pages/SingleReportPage/SingleReportPage.js b/src/pages/SingleReportPage/SingleReportPage.js
index 455aefed..c94c98aa 100644
--- a/src/pages/SingleReportPage/SingleReportPage.js
+++ b/src/pages/SingleReportPage/SingleReportPage.js
@@ -15,13 +15,13 @@ const tasks = [
{
index: 1,
text: "Задача «67 – Навигационная система – Главное меню – Обновить иконки» заблокирована из-за отсутствия новых иконок",
- hours: 3,
+ hours: 3
},
{
index: 2,
text: "Задача «83 – Навигационная система – Поиск по почтовому индексу – Добавить экран поиска по почтовому индексу» не может быть завершена, т.к. работа над задачей «82 – Навигационная система – Разработать модуль поиска по почтовому индексу» ещё не начата",
- hours: 3,
- },
+ hours: 3
+ }
];
const SingleReportPage = () => {
diff --git a/src/pages/Statistics/Statistics.jsx b/src/pages/Statistics/Statistics.jsx
index 8f9e67d8..a524391b 100644
--- a/src/pages/Statistics/Statistics.jsx
+++ b/src/pages/Statistics/Statistics.jsx
@@ -29,29 +29,29 @@ const Statistics = () => {
name: "Дмитрий Рогов",
email: "dmitryi.zavadskyi@yandex.ru",
role: "Программист",
- status: true,
+ status: true
},
{
avatar: mockAvatar,
name: "Марина Орехова",
email: "dmitryi.zavadskyi@yandex.ru",
role: "Менеджер",
- status: true,
+ status: true
},
{
avatar: mockAvatar,
name: "Тамара Доценко",
email: "dmitryi.zavadskyi@yandex.ru51515188151",
role: "Тестировщик",
- status: false,
+ status: false
},
{
avatar: mockAvatar,
name: "Кек Лолов",
email: "dm4124gmail.com",
role: "PM",
- status: false,
- },
+ status: false
+ }
];
const toggleTabs = (index) => {
@@ -66,7 +66,7 @@ const Statistics = () => {
Управление проектами с трекером
diff --git a/src/pages/Summary/Summary.js b/src/pages/Summary/Summary.js
index d5abaf34..11522090 100644
--- a/src/pages/Summary/Summary.js
+++ b/src/pages/Summary/Summary.js
@@ -60,9 +60,9 @@ export const Summary = () => {
method: "PUT",
data: {
UserCard: {
- skill: selectedSkills.map((item) => item.skill_id),
- },
- },
+ skill: selectedSkills.map((item) => item.skill_id)
+ }
+ }
}).then(() => {});
}
@@ -70,8 +70,8 @@ export const Summary = () => {
apiRequest("/resume/edit-text", {
method: "PUT",
data: {
- resume: summery,
- },
+ resume: summery
+ }
}).then(() => {});
}
return (
@@ -83,7 +83,7 @@ export const Summary = () => {
@@ -175,7 +175,7 @@ export const Summary = () => {
onClick={() =>
setSelectedSkills((prevValue) => [
...prevValue,
- { skill: skill, skill_id: skill.id },
+ { skill: skill, skill_id: skill.id }
])
}
key={skill.id}
@@ -235,8 +235,8 @@ export const Summary = () => {
"ImageToolbar",
"ImageUpload",
"MediaEmbed",
- "BlockQuote",
- ],
+ "BlockQuote"
+ ]
}}
onChange={(event, editor) => {
const data = editor.getData();
diff --git a/src/pages/Tracker/Tracker.jsx b/src/pages/Tracker/Tracker.jsx
index e080b9ba..2584fdac 100644
--- a/src/pages/Tracker/Tracker.jsx
+++ b/src/pages/Tracker/Tracker.jsx
@@ -6,7 +6,7 @@ import {
getToggleTab,
modalToggle,
setAllProjects,
- setToggleTab,
+ setToggleTab
} from "@redux/projectsTrackerSlice";
import { caseOfNum } from "@utils/helper";
@@ -134,7 +134,7 @@ export const Tracker = () => {
Управление проектами с трекером
diff --git a/src/pages/ViewReport/ViewReport.jsx b/src/pages/ViewReport/ViewReport.jsx
index b984f102..9ee00e7a 100644
--- a/src/pages/ViewReport/ViewReport.jsx
+++ b/src/pages/ViewReport/ViewReport.jsx
@@ -6,7 +6,7 @@ import { apiRequest } from "@api/request";
import {
getCorrectDate,
getCreatedDate,
- hourOfNum,
+ hourOfNum
} from "@components/Calendar/calendarHelper";
import { Footer } from "@components/Common/Footer/Footer";
import { Loader } from "@components/Common/Loader/Loader";
@@ -57,7 +57,7 @@ export const ViewReport = () => {
const taskInfo = {
hours: task.hours_spent,
task: task.task,
- id: task.id,
+ id: task.id
};
if (task.hours_spent) {
spendTime += Number(task.hours_spent);
@@ -96,7 +96,7 @@ export const ViewReport = () => {
links={[
{ name: "Главная", link: "/profile" },
{ name: "Ваша отчетность", link: "/profile/calendar" },
- { name: "Просмотр отчета за день", link: "/profile/view" },
+ { name: "Просмотр отчета за день", link: "/profile/view" }
]}
/>
diff --git a/src/pages/quiz/PassingTests.js b/src/pages/quiz/PassingTests.js
index da68eab0..e7042ec0 100644
--- a/src/pages/quiz/PassingTests.js
+++ b/src/pages/quiz/PassingTests.js
@@ -27,7 +27,7 @@ export const PassingTests = () => {
autoStart: false,
onExpire: () => {
navigate("/quiz");
- },
+ }
});
const onCloseWindow = (e) => {
@@ -43,18 +43,18 @@ export const PassingTests = () => {
{
title: "Зачем?",
description:
- "Тесты itguild предназначены для того, чтобы подтверждать навыки, которые вы указали у себя.",
+ "Тесты itguild предназначены для того, чтобы подтверждать навыки, которые вы указали у себя."
},
{
title: "Почему именно тестирование?",
description:
- "Тесты itguild заменяют первое техническое собеседование по любой вакансии.",
+ "Тесты itguild заменяют первое техническое собеседование по любой вакансии."
},
{
title: "Какие тесты нужно проходить?",
description:
- "Здесь все довольно просто — следует проходить тесты по инструментам и навыкам, которыми вы владеете.",
- },
+ "Здесь все довольно просто — следует проходить тесты по инструментам и навыкам, которыми вы владеете."
+ }
];
function onSwitchTab(e) {
@@ -86,7 +86,7 @@ export const PassingTests = () => {
links={[
{ name: "Главная", link: "/profile-candidate" },
{ name: "Тестирование", link: "/quiz" },
- { name: "Прохождение тестов", link: "/quiz/test" },
+ { name: "Прохождение тестов", link: "/quiz/test" }
]}
/>
diff --git a/src/pages/quiz/QuizPage.js b/src/pages/quiz/QuizPage.js
index 66a89f7d..73c9f9ba 100644
--- a/src/pages/quiz/QuizPage.js
+++ b/src/pages/quiz/QuizPage.js
@@ -36,7 +36,7 @@ export const QuizPage = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: true,
- img: BackEndImg,
+ img: BackEndImg
},
{
title: "Frontend разработчики",
@@ -44,14 +44,14 @@ export const QuizPage = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: true,
- img: FrontendImg,
+ img: FrontendImg
},
{
title: "Архитектура проектов",
link: "/registration-candidate",
description: "Потоки данных ER ERP CRM CQRS UML BPMN",
available: true,
- img: ArchitectureImg,
+ img: ArchitectureImg
},
{
title: "Дизайн проектов",
@@ -59,35 +59,35 @@ export const QuizPage = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: true,
- img: DesignImg,
+ img: DesignImg
},
{
title: "Тестирование проектов",
link: "/registration-candidate",
description: "SQL Postman TestRail Kibana Ручное тестирование",
available: false,
- img: TestImg,
+ img: TestImg
},
{
title: "Администрирование проектов",
link: "/registration-candidate",
description: "DevOps ELK Kubernetes Docker Bash Apache Oracle Git",
available: false,
- img: AdminImg,
+ img: AdminImg
},
{
title: "Управление проектом",
link: "/registration-candidate",
description: "Scrum Kanban Agile Miro CustDev",
available: false,
- img: ManageImg,
+ img: ManageImg
},
{
title: "Копирайтинг проектов",
link: "/registration-candidate",
description: "Теги Заголовок H1 Дескриптор Абзац Сценарий",
available: false,
- img: CopyImg,
+ img: CopyImg
},
{
title: "Реклама и SMM",
@@ -95,8 +95,8 @@ export const QuizPage = () => {
description:
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
available: false,
- img: SmmImg,
- },
+ img: SmmImg
+ }
]);
const userId = localStorage.getItem("id");
const [selectedCategory, setSetSelectedCategory] = useState(false);
@@ -116,7 +116,7 @@ export const QuizPage = () => {
diff --git a/src/pages/quiz/QuizReportPage.js b/src/pages/quiz/QuizReportPage.js
index f27936bd..8ee5ea61 100644
--- a/src/pages/quiz/QuizReportPage.js
+++ b/src/pages/quiz/QuizReportPage.js
@@ -43,7 +43,7 @@ export const QuizReportPage = () => {
links={[
{ name: "Главная", link: "/profile-candidate" },
{ name: "Тестирование", link: "/quiz" },
- { name: "Отчет по тестированию", link: "/quiz/report" },
+ { name: "Отчет по тестированию", link: "/quiz/report" }
]}
/>
diff --git a/src/redux/loaderSlice.js b/src/redux/loaderSlice.js
index 8280010a..6c07dae3 100644
--- a/src/redux/loaderSlice.js
+++ b/src/redux/loaderSlice.js
@@ -1,7 +1,7 @@
import { createSlice } from "@reduxjs/toolkit";
const initialState = {
- isLoading: false,
+ isLoading: false
};
export const loaderSlice = createSlice({
@@ -10,8 +10,8 @@ export const loaderSlice = createSlice({
reducers: {
loading: (state, action) => {
state.isLoading = action.payload;
- },
- },
+ }
+ }
});
export const { loading } = loaderSlice.actions;
diff --git a/src/redux/outstaffingSlice.js b/src/redux/outstaffingSlice.js
index 82f9e84c..be040a7b 100644
--- a/src/redux/outstaffingSlice.js
+++ b/src/redux/outstaffingSlice.js
@@ -17,8 +17,8 @@ const initialState = {
notification: {
show: false,
text: "",
- type: "",
- },
+ type: ""
+ }
};
export const outstaffingSlice = createSlice({
@@ -72,8 +72,8 @@ export const outstaffingSlice = createSlice({
},
closeNotification: (state) => {
state.notification.show = false;
- },
- },
+ }
+ }
});
export const {
@@ -92,7 +92,7 @@ export const {
setPartnerRequests,
setPartnerRequestInfo,
setNotification,
- closeNotification,
+ closeNotification
} = outstaffingSlice.actions;
export const selectProfiles = (state) => state.outstaffing.profiles;
diff --git a/src/redux/projectsTrackerSlice.js b/src/redux/projectsTrackerSlice.js
index 6ec215c0..4645d0b3 100644
--- a/src/redux/projectsTrackerSlice.js
+++ b/src/redux/projectsTrackerSlice.js
@@ -10,7 +10,7 @@ const initialState = {
boardLoader: false,
columnName: "",
columnId: 0,
- columnPriority: 0,
+ columnPriority: 0
};
export const setProjectBoardFetch = createAsyncThunk("userInfo", (id) =>
@@ -61,15 +61,15 @@ export const projectsTrackerSlice = createSlice({
if (column.id === action.payload.columnId) {
column.tasks.push({
...action.payload.startWrapperIndex.task,
- column_id: column.id,
+ column_id: column.id
});
apiRequest(`/task/update-task`, {
method: "PUT",
data: {
task_id: action.payload.startWrapperIndex.task.id,
column_id: column.id,
- priority: column.tasks.length - 1,
- },
+ priority: column.tasks.length - 1
+ }
}).then(() => {});
}
if (column.id === action.payload.startWrapperIndex.index) {
@@ -89,20 +89,20 @@ export const projectsTrackerSlice = createSlice({
if (column.id === action.payload.finishTask.column_id) {
column.tasks.splice(action.payload.finishIndex, 0, {
...action.payload.startTask,
- column_id: column.id,
+ column_id: column.id
});
apiRequest(`/task/update-task`, {
method: "PUT",
data: {
task_id: action.payload.startTask.id,
- column_id: column.id,
- },
+ column_id: column.id
+ }
}).then(() => {});
const priorityTasks = [];
column.tasks.forEach((task, index) => {
const curTask = {
task_id: task.id,
- priority: index,
+ priority: index
};
priorityTasks.push(curTask);
});
@@ -110,8 +110,8 @@ export const projectsTrackerSlice = createSlice({
method: "POST",
data: {
data: JSON.stringify(priorityTasks),
- column_id: column.id,
- },
+ column_id: column.id
+ }
}).then(() => {});
}
});
@@ -162,14 +162,14 @@ export const projectsTrackerSlice = createSlice({
},
modalToggle: (state, action) => {
state.modalType = action.payload;
- },
+ }
},
extraReducers: {
[setProjectBoardFetch.fulfilled]: (state, action) => {
state.projectBoard = action.payload;
state.boardLoader = false;
- },
- },
+ }
+ }
});
export const {
@@ -192,7 +192,7 @@ export const {
filterCreatedByMe,
filteredParticipateTasks,
filteredExecutorTasks,
- movePositionProjectTask,
+ movePositionProjectTask
} = projectsTrackerSlice.actions;
export const getProjects = (state) => state.tracker.projects;
diff --git a/src/redux/quizSlice.js b/src/redux/quizSlice.js
index 8cc33100..d79fafa3 100644
--- a/src/redux/quizSlice.js
+++ b/src/redux/quizSlice.js
@@ -8,7 +8,7 @@ const initialState = {
questionnaires: [],
completedTest: false,
selectedTest: {},
- result: null,
+ result: null
};
export const fetchResultTest = createAsyncThunk("result", (uuid) =>
@@ -26,13 +26,13 @@ export const quizSlice = createSlice({
},
setCompleteTest: (state) => {
state.completedTest = true;
- },
+ }
},
extraReducers: {
[fetchResultTest.fulfilled]: (state, action) => {
state.result = action.payload;
- },
- },
+ }
+ }
});
export const { setQuestions } = quizSlice.actions;
diff --git a/src/redux/reportSlice.js b/src/redux/reportSlice.js
index 4f3c49e7..0e3e85c5 100644
--- a/src/redux/reportSlice.js
+++ b/src/redux/reportSlice.js
@@ -4,7 +4,7 @@ const initialState = {
dateSelected: "",
reportDate: "",
requestDates: "",
- sendRequest: "",
+ sendRequest: ""
};
export const reportSlice = createSlice({
@@ -22,8 +22,8 @@ export const reportSlice = createSlice({
},
setSendRequest: (state, action) => {
state.sendRequest = action.payload;
- },
- },
+ }
+ }
});
export const { dateSelected, setReportDate, setRequestDate, setSendRequest } =
diff --git a/src/redux/roleSlice.js b/src/redux/roleSlice.js
index 89713900..8d14d2c0 100644
--- a/src/redux/roleSlice.js
+++ b/src/redux/roleSlice.js
@@ -1,7 +1,7 @@
import { createSlice } from "@reduxjs/toolkit";
const initialState = {
- role: null,
+ role: null
};
export const roleSlice = createSlice({
@@ -10,8 +10,8 @@ export const roleSlice = createSlice({
reducers: {
setRole: (state, action) => {
state.role = action.payload;
- },
- },
+ }
+ }
});
export const { setRole } = roleSlice.actions;
diff --git a/src/store/store.js b/src/store/store.js
index da9daa3e..0216bd14 100644
--- a/src/store/store.js
+++ b/src/store/store.js
@@ -14,10 +14,10 @@ export const store = configureStore({
role: roleReducer,
report: reportReducer,
tracker: projectsTrackerSlice,
- quiz: quizSlice,
+ quiz: quizSlice
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
- serializableCheck: false,
- }),
+ serializableCheck: false
+ })
});
diff --git a/src/utils/constants.js b/src/utils/constants.js
index 9520b7a9..57485b4d 100644
--- a/src/utils/constants.js
+++ b/src/utils/constants.js
@@ -2,7 +2,7 @@ export const LEVELS = {
1: "Junior",
2: "Middle",
3: "Middle+",
- 4: "Senior",
+ 4: "Senior"
};
export const SKILLS = {
@@ -11,5 +11,5 @@ export const SKILLS = {
3: "Маркетолог",
4: "Smm - специалист",
5: "Дизайнер",
- 6: "Копирайтер",
+ 6: "Копирайтер"
};
diff --git a/src/utils/helper.js b/src/utils/helper.js
index 5c952c8e..5c228457 100644
--- a/src/utils/helper.js
+++ b/src/utils/helper.js
@@ -50,7 +50,7 @@ export const backendImg = (url) => `https://back.itguild.info${url}`;
export function scrollToForm() {
window.scrollTo({
top: 850,
- behavior: "smooth",
+ behavior: "smooth"
});
}
@@ -77,7 +77,7 @@ export function caseOfNum(number, type) {
files: ["файл", "файла", "файлов"],
persons: ["участник", "участника", "участников"],
tasks: ["задача", "задачи", "задач"],
- projects: ["проект", "проекта", "проектов"],
+ projects: ["проект", "проекта", "проектов"]
};
const cases = [2, 0, 1, 1, 1, 2];
return allTypes[type][