mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
handle manual grid rows on paginated lists
This commit is contained in:
@@ -25,6 +25,7 @@ export const AlbumListPaginatedGrid = forwardRef<any, AlbumListPaginatedGridProp
|
|||||||
{
|
{
|
||||||
gap = 'md',
|
gap = 'md',
|
||||||
itemsPerPage = 100,
|
itemsPerPage = 100,
|
||||||
|
itemsPerRow,
|
||||||
query = {
|
query = {
|
||||||
sortBy: AlbumListSort.NAME,
|
sortBy: AlbumListSort.NAME,
|
||||||
sortOrder: SortOrder.ASC,
|
sortOrder: SortOrder.ASC,
|
||||||
@@ -75,6 +76,7 @@ export const AlbumListPaginatedGrid = forwardRef<any, AlbumListPaginatedGridProp
|
|||||||
to: scrollOffset ?? 0,
|
to: scrollOffset ?? 0,
|
||||||
type: 'offset',
|
type: 'offset',
|
||||||
}}
|
}}
|
||||||
|
itemsPerRow={itemsPerRow}
|
||||||
itemType={LibraryItem.ALBUM}
|
itemType={LibraryItem.ALBUM}
|
||||||
onScrollEnd={handleOnScrollEnd}
|
onScrollEnd={handleOnScrollEnd}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export const PlaylistListPaginatedGrid = forwardRef<any, PlaylistListPaginatedGr
|
|||||||
{
|
{
|
||||||
gap = 'md',
|
gap = 'md',
|
||||||
itemsPerPage = 100,
|
itemsPerPage = 100,
|
||||||
|
itemsPerRow,
|
||||||
query = {
|
query = {
|
||||||
sortBy: PlaylistListSort.NAME,
|
sortBy: PlaylistListSort.NAME,
|
||||||
sortOrder: SortOrder.ASC,
|
sortOrder: SortOrder.ASC,
|
||||||
@@ -75,6 +76,7 @@ export const PlaylistListPaginatedGrid = forwardRef<any, PlaylistListPaginatedGr
|
|||||||
to: scrollOffset ?? 0,
|
to: scrollOffset ?? 0,
|
||||||
type: 'offset',
|
type: 'offset',
|
||||||
}}
|
}}
|
||||||
|
itemsPerRow={itemsPerRow}
|
||||||
itemType={LibraryItem.PLAYLIST}
|
itemType={LibraryItem.PLAYLIST}
|
||||||
onScrollEnd={handleOnScrollEnd}
|
onScrollEnd={handleOnScrollEnd}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export const SongListPaginatedGrid = forwardRef<any, SongListPaginatedGridProps>
|
|||||||
{
|
{
|
||||||
gap = 'md',
|
gap = 'md',
|
||||||
itemsPerPage = 100,
|
itemsPerPage = 100,
|
||||||
|
itemsPerRow,
|
||||||
query = {
|
query = {
|
||||||
sortBy: SongListSort.NAME,
|
sortBy: SongListSort.NAME,
|
||||||
sortOrder: SortOrder.ASC,
|
sortOrder: SortOrder.ASC,
|
||||||
@@ -60,6 +61,7 @@ export const SongListPaginatedGrid = forwardRef<any, SongListPaginatedGridProps>
|
|||||||
currentPage={currentPage}
|
currentPage={currentPage}
|
||||||
data={data || []}
|
data={data || []}
|
||||||
gap={gap}
|
gap={gap}
|
||||||
|
itemsPerRow={itemsPerRow}
|
||||||
itemType={LibraryItem.SONG}
|
itemType={LibraryItem.SONG}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
rows={rows}
|
rows={rows}
|
||||||
|
|||||||
Reference in New Issue
Block a user