diff --git a/src/components/Sidebar/Sidebar.js b/src/components/Sidebar/Sidebar.js
index 851017dd..85ee810d 100644
--- a/src/components/Sidebar/Sidebar.js
+++ b/src/components/Sidebar/Sidebar.js
@@ -2,21 +2,15 @@ import React from 'react';
import { Link } from 'react-router-dom';
import dogBig from '../../images/dog.jpg';
import style from './Sidebar.module.css';
-import { useHistory } from 'react-router-dom';
-import { path } from '../../redux/outstaffingSlice';
-import { useDispatch } from 'react-redux';
const Sidebar = () => {
- const history = useHistory();
- const dispatch = useDispatch();
-
return (
Опыт работы
4+ лет
-
dispatch(path(history.location.pathname))}>
+
diff --git a/src/redux/outstaffingSlice.js b/src/redux/outstaffingSlice.js
index 26cb33e0..09de6405 100644
--- a/src/redux/outstaffingSlice.js
+++ b/src/redux/outstaffingSlice.js
@@ -7,7 +7,6 @@ const initialState = {
selectedItems: [],
currentCandidate: {},
auth: true,
- path: '',
};
export const outstaffingSlice = createSlice({
@@ -32,14 +31,10 @@ export const outstaffingSlice = createSlice({
auth: (state, action) => {
state.auth = action.payload;
},
- path: (state, action) => {
- state.path = action.payload;
- },
},
});
-export const { tags, profiles, selectedItems, auth, currentCandidate, filteredCandidates, path } =
- outstaffingSlice.actions;
+export const { tags, profiles, selectedItems, auth, currentCandidate, filteredCandidates } = outstaffingSlice.actions;
export const selectProfiles = (state) => state.outstaffing.profiles;
export const selectTags = (state) => state.outstaffing.tags;
@@ -47,6 +42,5 @@ export const selectFilteredCandidates = (state) => state.outstaffing.filteredCan
export const selectItems = (state) => state.outstaffing.selectedItems;
export const selectCurrentCandidate = (state) => state.outstaffing.currentCandidate;
export const selectAuth = (state) => state.outstaffing.auth;
-export const selectPath = (state) => state.outstaffing.path;
export default outstaffingSlice.reducer;