mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-05 04:01:39 +00:00
Add grid view for tracks (#128)
This commit is contained in:
parent
d3503af12c
commit
0b62bee3a6
9 changed files with 429 additions and 30 deletions
|
|
@ -13,8 +13,10 @@ import { useSongList } from '/@/renderer/features/songs/queries/song-list-query'
|
|||
import { useCurrentServer, useListFilterByKey } from '/@/renderer/store';
|
||||
import { Play } from '/@/renderer/types';
|
||||
import { titleCase } from '/@/renderer/utils';
|
||||
import { VirtualInfiniteGridRef } from '/@/renderer/components/virtual-grid';
|
||||
|
||||
const TrackListRoute = () => {
|
||||
const gridRef = useRef<VirtualInfiniteGridRef | null>(null);
|
||||
const tableRef = useRef<AgGridReactType | null>(null);
|
||||
const server = useCurrentServer();
|
||||
const [searchParams] = useSearchParams();
|
||||
|
|
@ -134,6 +136,7 @@ const TrackListRoute = () => {
|
|||
<AnimatedPage>
|
||||
<ListContext.Provider value={providerValue}>
|
||||
<SongListHeader
|
||||
gridRef={gridRef}
|
||||
itemCount={itemCount}
|
||||
tableRef={tableRef}
|
||||
title={
|
||||
|
|
@ -143,6 +146,7 @@ const TrackListRoute = () => {
|
|||
}
|
||||
/>
|
||||
<SongListContent
|
||||
gridRef={gridRef}
|
||||
itemCount={itemCount}
|
||||
tableRef={tableRef}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue