📕 Added recently imported section to dashboard

This commit is contained in:
2021-06-10 16:18:44 -07:00
parent 1cfe2b215d
commit 62b55a4bd8
9 changed files with 144 additions and 85 deletions

View File

@@ -5,6 +5,8 @@ import {
IMS_SOCKET_ERROR,
IMS_RAW_IMPORT_SUCCESSFUL,
IMS_RAW_IMPORT_FAILED,
IMS_RECENT_COMICS_FETCHED,
IMS_DATA_FETCH_ERROR,
} from "../constants/action-types";
const initialState = {
dataTransferred: false,
@@ -37,6 +39,11 @@ function fileOpsReducer(state = initialState, action) {
...state,
rawImportErorr: action.rawImportError,
};
case IMS_RECENT_COMICS_FETCHED:
return {
...state,
recentComics: action.data,
};
default:
return state;
}