fixed code
This commit is contained in:
@ -3,10 +3,8 @@ import { createSlice } from '@reduxjs/toolkit';
|
||||
const initialState = {
|
||||
tags: [],
|
||||
profiles: [],
|
||||
candidates: [],
|
||||
filteredCandidates: [],
|
||||
selectedItems: [],
|
||||
selectedTab: '',
|
||||
currentCandidate: {},
|
||||
auth: true,
|
||||
};
|
||||
@ -21,15 +19,9 @@ export const outstaffingSlice = createSlice({
|
||||
profiles: (state, action) => {
|
||||
state.profiles = action.payload;
|
||||
},
|
||||
candidates: (state, action) => {
|
||||
state.candidates = action.payload;
|
||||
},
|
||||
filteredCandidates: (state, action) => {
|
||||
state.filteredCandidates = action.payload;
|
||||
},
|
||||
selectedTab: (state, action) => {
|
||||
state.selectedTab = action.payload;
|
||||
},
|
||||
selectedItems: (state, action) => {
|
||||
state.selectedItems = action.payload;
|
||||
},
|
||||
@ -42,14 +34,11 @@ export const outstaffingSlice = createSlice({
|
||||
},
|
||||
});
|
||||
|
||||
export const { tags, profiles, candidates, selectedTab, selectedItems, auth, currentCandidate, filteredCandidates } =
|
||||
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;
|
||||
export const selectCandidates = (state) => state.outstaffing.candidates;
|
||||
export const selectFilteredCandidates = (state) => state.outstaffing.filteredCandidates;
|
||||
export const selectTab = (state) => state.outstaffing.selectedTab;
|
||||
export const selectItems = (state) => state.outstaffing.selectedItems;
|
||||
export const selectCurrentCandidate = (state) => state.outstaffing.currentCandidate;
|
||||
export const selectAuth = (state) => state.outstaffing.auth;
|
||||
|
Reference in New Issue
Block a user