diff --git a/src/renderer/components/virtual-grid/grid-card/default-card.tsx b/src/renderer/components/virtual-grid/grid-card/default-card.tsx index f0b30ef3..6bedde5a 100644 --- a/src/renderer/components/virtual-grid/grid-card/default-card.tsx +++ b/src/renderer/components/virtual-grid/grid-card/default-card.tsx @@ -4,7 +4,7 @@ import { generatePath, useNavigate } from 'react-router-dom'; import { SimpleImg } from 'react-simple-img'; import { ListChildComponentProps } from 'react-window'; import styled from 'styled-components'; -import { Album, AlbumArtist, Artist, LibraryItem } from '/@/renderer/api/types'; +import { Album, AlbumArtist, Artist, LibraryItem, Playlist, Song } from '/@/renderer/api/types'; import { CardRows } from '/@/renderer/components/card'; import { Skeleton } from '/@/renderer/components/skeleton'; import { GridCardControls } from '/@/renderer/components/virtual-grid/grid-card/grid-card-controls'; @@ -13,7 +13,7 @@ import { CardRow, PlayQueueAddOptions, Play, CardRoute } from '/@/renderer/types interface BaseGridCardProps { columnIndex: number; controls: { - cardRows: CardRow[]; + cardRows: CardRow[]; handleFavorite: (options: { id: string[]; isFavorite: boolean; diff --git a/src/renderer/components/virtual-grid/grid-card/poster-card.tsx b/src/renderer/components/virtual-grid/grid-card/poster-card.tsx index 80dd0310..49779e1e 100644 --- a/src/renderer/components/virtual-grid/grid-card/poster-card.tsx +++ b/src/renderer/components/virtual-grid/grid-card/poster-card.tsx @@ -4,7 +4,7 @@ import { generatePath, useNavigate } from 'react-router-dom'; import { SimpleImg } from 'react-simple-img'; import { ListChildComponentProps } from 'react-window'; import styled from 'styled-components'; -import { Album, AlbumArtist, Artist, LibraryItem, Playlist } from '/@/renderer/api/types'; +import { Album, AlbumArtist, Artist, LibraryItem, Playlist, Song } from '/@/renderer/api/types'; import { CardRows } from '/@/renderer/components/card'; import { Skeleton } from '/@/renderer/components/skeleton'; import { GridCardControls } from '/@/renderer/components/virtual-grid/grid-card/grid-card-controls'; @@ -13,7 +13,7 @@ import { CardRow, PlayQueueAddOptions, Play, CardRoute } from '/@/renderer/types interface BaseGridCardProps { columnIndex: number; controls: { - cardRows: CardRow[]; + cardRows: CardRow[]; handleFavorite: (options: { id: string[]; isFavorite: boolean; diff --git a/src/renderer/types.ts b/src/renderer/types.ts index 44816f4a..26adda57 100644 --- a/src/renderer/types.ts +++ b/src/renderer/types.ts @@ -1,4 +1,12 @@ -import { Album, AlbumArtist, Artist, LibraryItem, QueueSong } from '/@/renderer/api/types'; +import { + Album, + AlbumArtist, + Artist, + LibraryItem, + Playlist, + QueueSong, + Song, +} from '/@/renderer/api/types'; import { AppRoute } from '/@/renderer/router/routes'; export type TablePagination = { @@ -163,7 +171,7 @@ export type PlayQueueAddOptions = { export type GridCardData = { cardControls: any; - cardRows: CardRow[]; + cardRows: CardRow[]; columnCount: number; display: ListDisplayType; handleFavorite: (options: { id: string[]; isFavorite: boolean; itemType: LibraryItem }) => void;