diff --git a/src/client/components/ComicDetail.tsx b/src/client/components/ComicDetail.tsx index 8d00847..2037dfb 100644 --- a/src/client/components/ComicDetail.tsx +++ b/src/client/components/ComicDetail.tsx @@ -40,7 +40,7 @@ type ComicDetailProps = {}; * ) */ -export const ComicDetail = ({}: ComicDetailProps): ReactElement => { +export const ComicDetail = ({ }: ComicDetailProps): ReactElement => { const [page, setPage] = useState(1); const [visible, setVisible] = useState(false); const [slidingPanelContentId, setSlidingPanelContentId] = useState(""); @@ -180,8 +180,8 @@ export const ComicDetail = ({}: ComicDetailProps): ReactElement => { {/* Downloads tab and count badge */} {id === 4 && - !isNil(comicBookDetailData) && - !isEmpty(comicBookDetailData) ? ( + !isNil(comicBookDetailData) && + !isEmpty(comicBookDetailData) ? ( diff --git a/src/client/components/ComicDetail/RawFileDetails.tsx b/src/client/components/ComicDetail/RawFileDetails.tsx index 846a4f9..6079fac 100644 --- a/src/client/components/ComicDetail/RawFileDetails.tsx +++ b/src/client/components/ComicDetail/RawFileDetails.tsx @@ -4,6 +4,7 @@ import prettyBytes from "pretty-bytes"; export const RawFileDetails = (props): ReactElement => { const { data } = props; + console.log(data); return (
diff --git a/src/client/constants/action-types.ts b/src/client/constants/action-types.ts index 41b92f7..e1259e9 100644 --- a/src/client/constants/action-types.ts +++ b/src/client/constants/action-types.ts @@ -62,6 +62,7 @@ export const AIRDCPP_DOWNLOAD_PROGRESS_TICK = "AIRDCPP_DOWNLOAD_PROGRESS_TICK"; // LIBRARY SOCKET ENDPOINT export const LS_IMPORT = "LS_IMPORT"; export const LS_COVER_EXTRACTED = "LS_COVER_EXTRACTED"; +export const LS_COMIC_ADDED = "LS_COMIC_ADDED"; // Settings export const SETTINGS_CALL_IN_PROGRESS = "SETTINGS_CALL_IN_PROGRESS"; diff --git a/src/client/reducers/fileops.reducer.ts b/src/client/reducers/fileops.reducer.ts index 6164e69..b9aa940 100644 --- a/src/client/reducers/fileops.reducer.ts +++ b/src/client/reducers/fileops.reducer.ts @@ -1,9 +1,7 @@ import { LOCATION_CHANGE } from "connected-react-router"; import { RMQ_SOCKET_CONNECTED, - RMQ_SOCKET_DISCONNECTED, IMS_COMICBOOK_METADATA_FETCHED, - RMQ_SOCKET_ERROR, IMS_RAW_IMPORT_SUCCESSFUL, IMS_RAW_IMPORT_FAILED, IMS_RECENT_COMICS_FETCHED, @@ -18,6 +16,7 @@ import { IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_SUCCESS, LS_IMPORT, LS_COVER_EXTRACTED, + LS_COMIC_ADDED, } from "../constants/action-types"; const initialState = { IMSCallInProgress: false, @@ -130,6 +129,12 @@ function fileOpsReducer(state = initialState, action) { ...state, }; } + case LS_COMIC_ADDED: { + console.log("ADDED na anna", action); + return { + ...state, + }; + } default: return state; }