forked from Abdulbari/sgeUpdated
git-subtree-dir: sge-frontend git-subtree-mainline:876c278ac4git-subtree-split:5fa787e054
16 lines
318 B
JavaScript
16 lines
318 B
JavaScript
const initialState = {
|
|
data: [],
|
|
};
|
|
|
|
const accessTokenReducer = (state = initialState, action) => {
|
|
switch (action.type) {
|
|
case "GET_NEWACCESSTOKEN":
|
|
return {
|
|
...state,
|
|
data: action.payload.newAccessToken,
|
|
};
|
|
}
|
|
return state;
|
|
};
|
|
export default accessTokenReducer;
|