🔧 Added a call to fetch volumes
This commit is contained in:
@@ -9,6 +9,27 @@ import { isUndefined } from "lodash";
|
|||||||
import { convert } from "html-to-text";
|
import { convert } from "html-to-text";
|
||||||
|
|
||||||
export const Volumes = (props): ReactElement => {
|
export const Volumes = (props): ReactElement => {
|
||||||
|
const volumes = useSelector(
|
||||||
|
(state: RootState) => state.fileOps.librarySearchResults,
|
||||||
|
);
|
||||||
|
const dispatch = useDispatch();
|
||||||
|
useEffect(() => {
|
||||||
|
dispatch(
|
||||||
|
searchIssue(
|
||||||
|
{
|
||||||
|
query: {},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
pagination: {
|
||||||
|
size: 25,
|
||||||
|
from: 0,
|
||||||
|
},
|
||||||
|
type: "volumes",
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}, []);
|
||||||
|
console.log(volumes);
|
||||||
return <div>as</div>;
|
return <div>as</div>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ export const WantedComics = (props): ReactElement => {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}, []);
|
}, []);
|
||||||
console.log(wantedComics);
|
|
||||||
const columnData = useMemo(
|
const columnData = useMemo(
|
||||||
() => [
|
() => [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user