mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Move card rows to separate component
This commit is contained in:
parent
6eb08243b7
commit
7d1083d1f7
5 changed files with 201 additions and 236 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue