🏗 Building out the VolumeDetail page scaffold

This commit is contained in:
2022-01-29 15:55:45 -08:00
parent 8f83a0f94f
commit e9e7ff7e5f
8 changed files with 115 additions and 7 deletions

View File

@@ -11,6 +11,8 @@ import {
IMS_COMIC_BOOK_DB_OBJECT_FETCHED,
IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_SUCCESS,
IMS_COMIC_BOOK_ARCHIVE_EXTRACTION_CALL_IN_PROGRESS,
CV_ISSUES_METADATA_CALL_IN_PROGRESS,
CV_ISSUES_METADATA_FETCH_SUCCESS,
} from "../constants/action-types";
import {
COMICBOOKINFO_SERVICE_URI,
@@ -62,7 +64,23 @@ export const comicinfoAPICall = (options) => async (dispatch) => {
});
}
};
export const getIssuesForSeries = (comicObjectID: any) => async (dispatch) => {
dispatch({
type: CV_ISSUES_METADATA_CALL_IN_PROGRESS,
});
const issues = await axios({
url: `${COMICBOOKINFO_SERVICE_URI}/getIssuesForVolume`,
params: {
comicObjectID,
},
});
console.log(issues);
dispatch({
type: CV_ISSUES_METADATA_FETCH_SUCCESS,
issues,
});
};
export const getComicBookDetailById =
(comicBookObjectId: string) => async (dispatch) => {
dispatch({