Move card rows to separate component

This commit is contained in:
jeffvli 2022-12-24 13:44:52 -08:00
parent 6eb08243b7
commit 7d1083d1f7
5 changed files with 201 additions and 236 deletions

View file

@ -12,6 +12,7 @@ import type {
CardRoute,
PlayQueueAddOptions,
} from '/@/renderer/types';
import { Album, AlbumArtist, Artist } from '/@/renderer/api/types';
const createItemData = memoize(
(
@ -61,7 +62,7 @@ export const VirtualGridWrapper = ({
onScroll,
...rest
}: Omit<FixedSizeListProps, 'ref' | 'itemSize' | 'children'> & {
cardRows: CardRow[];
cardRows: CardRow<Album | AlbumArtist | Artist>[];
columnCount: number;
display: CardDisplayType;
handlePlayQueueAdd?: (options: PlayQueueAddOptions) => void;