diff --git a/src/renderer/features/playlists/components/playlist-detail-song-list-table.tsx b/src/renderer/features/playlists/components/playlist-detail-song-list-table.tsx index 0c4e2b4f1..1ea3b8a5d 100644 --- a/src/renderer/features/playlists/components/playlist-detail-song-list-table.tsx +++ b/src/renderer/features/playlists/components/playlist-detail-song-list-table.tsx @@ -12,13 +12,17 @@ import { useSearchTermFilter } from '/@/renderer/features/shared/hooks/use-searc import { searchLibraryItems } from '/@/renderer/features/shared/utils'; import { usePlayerSong } from '/@/renderer/store'; import { sortSongList } from '/@/shared/api/utils'; -import { LibraryItem, PlaylistSongListQuery, Song } from '/@/shared/types/domain-types'; +import { + LibraryItem, + PlaylistSongListQuery, + PlaylistSongListResponse, + Song, +} from '/@/shared/types/domain-types'; import { ItemListKey, Play } from '/@/shared/types/types'; interface PlaylistDetailSongListTableProps extends Omit, 'query'> { - data: any; - playlistId: string; + data: PlaylistSongListResponse; } export const PlaylistDetailSongListTable = forwardRef( @@ -32,14 +36,11 @@ export const PlaylistDetailSongListTable = forwardRef { - const { handleOnScrollEnd, scrollOffset } = useItemListScrollPersist({ enabled: saveScrollOffset, });