📚 Added volume card stacks to the dashboard

This commit is contained in:
2021-09-21 22:04:05 -07:00
parent 048c7ba6d5
commit 384f1ce81e
7 changed files with 185 additions and 75 deletions

View File

@@ -2,6 +2,7 @@ import React, { ReactElement, useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import ZeroState from "./ZeroState";
import { RecentlyImported } from "./RecentlyImported";
import { VolumeGroups } from "./VolumeGroups";
import { getComicBooks } from "../actions/fileops.actions";
import { isEmpty } from "lodash";
@@ -28,11 +29,8 @@ export const Dashboard = (): ReactElement => {
{!isEmpty(recentComics) && !isEmpty(recentComics.docs) ? (
<>
<h2 className="subtitle">Recently Imported</h2>
<RecentlyImported comicBookCovers={recentComics} />
<section>
<div className="paper">asdas</div>
</section>
<VolumeGroups />
</>
) : (
<ZeroState