- {allCandidates &&
+ {
candidatesListArr &&
- candidatesListArr.length !== allCandidates.length &&
filteredListArr.length === 0 ? (
) : null}
diff --git a/src/components/Home/Home.js b/src/components/Home/Home.js
index ef0e5bfc..47bab85d 100644
--- a/src/components/Home/Home.js
+++ b/src/components/Home/Home.js
@@ -1,18 +1,15 @@
import React, {useState, useEffect} from 'react'
-import {useDispatch, useSelector} from 'react-redux'
+import {useDispatch} from 'react-redux'
import Outstaffing from '../Outstaffing/Outstaffing'
import Description from '../Description/Description'
import {Footer} from '../Footer/Footer'
-
-import {profiles, tags, auth} from '../../redux/outstaffingSlice'
-import {getRole} from '../../redux/roleSlice'
+import {profiles, tags} from '../../redux/outstaffingSlice'
import {useRequest} from "../../hooks/useRequest";
-
const Home = () => {
const [isLoadingMore, setIsLoadingMore] = useState(false);
@@ -48,7 +45,8 @@ const Home = () => {
);
dispatch(tags(tempTags))
})
- }, [dispatch, index]);
+ console.log(1)
+ }, [index]);
const loadMore = (count) => {
setIndex((prev) => prev + count)
diff --git a/src/components/Outstaffing/Outstaffing.js b/src/components/Outstaffing/Outstaffing.js
index 418b6dde..c50a581c 100644
--- a/src/components/Outstaffing/Outstaffing.js
+++ b/src/components/Outstaffing/Outstaffing.js
@@ -1,12 +1,11 @@
-import React, { useState } from 'react'
+import React from 'react'
import { useSelector, useDispatch } from 'react-redux'
+
import OutstaffingBlock from '../OutstaffingBlock/OutstaffingBlock'
import TagSelect from '../Select/TagSelect'
-import {
- selectTags,
- getPositionId,
- setPositionId
-} from '../../redux/outstaffingSlice'
+
+import { selectTags, getPositionId, setPositionId} from '../../redux/outstaffingSlice'
+
import front from '../../images/front_end.png'
import back from '../../images/back_end.png'
import design from '../../images/design.png'
diff --git a/src/components/ProfileCalendar/ProfileCalendar.js b/src/components/ProfileCalendar/ProfileCalendar.js
index c726e4e6..5a66c9ec 100644
--- a/src/components/ProfileCalendar/ProfileCalendar.js
+++ b/src/components/ProfileCalendar/ProfileCalendar.js
@@ -1,20 +1,19 @@
import React, { useEffect, useState } from 'react'
-import {useDispatch, useSelector} from 'react-redux'
-import { getProfileInfo } from '../../redux/outstaffingSlice'
-import { setReportDate } from '../../redux/reportSlice';
-import arrow from "../../images/right-arrow.png";
+import {useSelector} from 'react-redux'
+
import { Link } from 'react-router-dom'
import moment from "moment";
-import rectangle from '../../images/rectangle_secondPage.png'
+
import {currentMonth, getReports} from '../Calendar/calendarHelper'
import {ProfileCalendarComponent} from "./ProfileCalendarComponent";
-import { ProfileHeader } from "../Profile/ProfileHeader";
import { Footer } from '../Footer/Footer'
+import {ProfileHeader} from "../ProfileHeader/ProfileHeader";
+
+import {useRequest} from "../../hooks/useRequest";
+import { getProfileInfo } from '../../redux/outstaffingSlice'
import './profileCalendar.scss'
-import {useRequest} from "../../hooks/useRequest";
export const ProfileCalendar = () => {
- const dispatch = useDispatch();
const profileInfo = useSelector(getProfileInfo);
const [month, setMonth] = useState('');
const [reports, setReports] = useState([]);
diff --git a/src/components/ReportForm/ReportForm.js b/src/components/ReportForm/ReportForm.js
index 28bbf4d0..cb136026 100644
--- a/src/components/ReportForm/ReportForm.js
+++ b/src/components/ReportForm/ReportForm.js
@@ -8,12 +8,11 @@ import ellipse from '../../images/ellipse.png'
import remove from '../../images/remove.png'
import addIcon from '../../images/addIcon.png'
import {currentMonthAndDay} from '../Calendar/calendarHelper'
-import {currentMonthAndDay, getReports} from '../Calendar/calendarHelper'
-import {ProfileHeader} from "../Profile/ProfileHeader";
import {Footer} from "../Footer/Footer";
import './reportForm.scss'
import arrow from "../../images/right-arrow.png";
import {useRequest} from "../../hooks/useRequest";
+import {ProfileHeader} from "../ProfileHeader/ProfileHeader";
const getCreatedDate = (day) => {
if (day) {
diff --git a/src/components/features/quiz/ProgressbarQuiz.js b/src/components/features/quiz/ProgressbarQuiz.js
index 3516698c..037773f1 100644
--- a/src/components/features/quiz/ProgressbarQuiz.js
+++ b/src/components/features/quiz/ProgressbarQuiz.js
@@ -1,5 +1,4 @@
-import { Link } from 'react-router-dom'
-import avatar from './../../../images/medium_male.png'
+import React from 'react'
import './quiz.scss'
export const Progressbar = ({indexQuestion, width}) => {
@@ -15,4 +14,4 @@ export const Progressbar = ({indexQuestion, width}) => {
)
-}
\ No newline at end of file
+};
\ No newline at end of file
diff --git a/src/components/features/quiz/Results.js b/src/components/features/quiz/Results.js
index d475fd05..090dd927 100644
--- a/src/components/features/quiz/Results.js
+++ b/src/components/features/quiz/Results.js
@@ -11,12 +11,12 @@ export const Results = () => {
const dispatch = useDispatch();
const {apiRequest} = useRequest();
- useEffect(async () => {
+ useEffect(() => {
dispatch(fetchResultTest(test.uuid));
apiRequest(`/user-questionnaire/get-points-number?user_questionnaire_uuid=${test.uuid}`)
.then((res) => setMaxScore(res.sum_point));
- }, []);
+ }, [apiRequest, dispatch, test]);
return (
diff --git a/src/components/features/quiz/Task.js b/src/components/features/quiz/Task.js
index d41551b8..115810bd 100644
--- a/src/components/features/quiz/Task.js
+++ b/src/components/features/quiz/Task.js
@@ -38,7 +38,7 @@ export const TaskQuiz = () => {
dispatch(fetchGetAnswers(response[0].id));
setStripValue((+index + 1) * 100 / response.length)
})
- }, [dispatch, apiRequest]);
+ }, [dispatch]);
const nextQuestion = async (e) => {
e.preventDefault();
diff --git a/src/pages/Summary/Summary.js b/src/pages/Summary/Summary.js
index 537df491..b202f607 100644
--- a/src/pages/Summary/Summary.js
+++ b/src/pages/Summary/Summary.js
@@ -22,7 +22,7 @@ export const Summary = () => {
useEffect(() => {
apiRequest(`/profile/portfolio-projects?card_id=${localStorage.getItem('cardId')}`)
.then(responseGit => setGitInfo(responseGit))
- }, [apiRequest]);
+ }, []);
return (