⬇️ Added bundles to downloads tab for corresponding comic book object

This commit is contained in:
2021-08-25 23:07:12 -07:00
parent 6994da072d
commit 2960c2dca4
5 changed files with 110 additions and 30 deletions

View File

@@ -4,6 +4,7 @@ import {
AIRDCPP_HUB_SEARCHES_SENT,
AIRDCPP_RESULT_DOWNLOAD_INITIATED,
AIRDCPP_DOWNLOAD_PROGRESS_TICK,
AIRDCPP_BUNDLES_FETCHED,
} from "../constants/action-types";
import { LOCATION_CHANGE } from "connected-react-router";
@@ -50,6 +51,12 @@ function airdcppReducer(state = initialState, action) {
...state,
downloadProgressData: action.downloadProgressData,
};
case AIRDCPP_BUNDLES_FETCHED:
console.log(action)
return {
...state,
bundles: action.bundles,
};
case LOCATION_CHANGE:
return {
initialState,