mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
Fix missing autosizer types
This commit is contained in:
parent
e618ac7590
commit
9f60769b65
@ -1,7 +1,7 @@
|
|||||||
import { QueryKey, useQueryClient } from '@tanstack/react-query';
|
import { QueryKey, useQueryClient } from '@tanstack/react-query';
|
||||||
import { useCallback, useMemo } from 'react';
|
import { useCallback, useMemo } from 'react';
|
||||||
import { useSearchParams } from 'react-router-dom';
|
import { useSearchParams } from 'react-router-dom';
|
||||||
import AutoSizer from 'react-virtualized-auto-sizer';
|
import AutoSizer, { Size } from 'react-virtualized-auto-sizer';
|
||||||
import { ListOnScrollProps } from 'react-window';
|
import { ListOnScrollProps } from 'react-window';
|
||||||
import { controller } from '/@/renderer/api/controller';
|
import { controller } from '/@/renderer/api/controller';
|
||||||
import { queryKeys } from '/@/renderer/api/query-keys';
|
import { queryKeys } from '/@/renderer/api/query-keys';
|
||||||
@ -211,7 +211,7 @@ export const AlbumListGridView = ({ gridRef, itemCount }: any) => {
|
|||||||
return (
|
return (
|
||||||
<VirtualGridAutoSizerContainer>
|
<VirtualGridAutoSizerContainer>
|
||||||
<AutoSizer>
|
<AutoSizer>
|
||||||
{({ height, width }) => (
|
{({ height, width }: Size) => (
|
||||||
<VirtualInfiniteGrid
|
<VirtualInfiniteGrid
|
||||||
key={`album-list-${server?.id}-${display}`}
|
key={`album-list-${server?.id}-${display}`}
|
||||||
ref={gridRef}
|
ref={gridRef}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { QueryKey, useQueryClient } from '@tanstack/react-query';
|
import { QueryKey, useQueryClient } from '@tanstack/react-query';
|
||||||
import { MutableRefObject, useCallback, useMemo } from 'react';
|
import { MutableRefObject, useCallback, useMemo } from 'react';
|
||||||
import AutoSizer from 'react-virtualized-auto-sizer';
|
import AutoSizer, { Size } from 'react-virtualized-auto-sizer';
|
||||||
import { ListOnScrollProps } from 'react-window';
|
import { ListOnScrollProps } from 'react-window';
|
||||||
import { VirtualGridAutoSizerContainer } from '../../../components/virtual-grid/virtual-grid-wrapper';
|
import { VirtualGridAutoSizerContainer } from '../../../components/virtual-grid/virtual-grid-wrapper';
|
||||||
import { useListStoreByKey } from '../../../store/list.store';
|
import { useListStoreByKey } from '../../../store/list.store';
|
||||||
@ -147,7 +147,7 @@ export const AlbumArtistListGridView = ({ itemCount, gridRef }: AlbumArtistListG
|
|||||||
return (
|
return (
|
||||||
<VirtualGridAutoSizerContainer>
|
<VirtualGridAutoSizerContainer>
|
||||||
<AutoSizer>
|
<AutoSizer>
|
||||||
{({ height, width }) => (
|
{({ height, width }: Size) => (
|
||||||
<VirtualInfiniteGrid
|
<VirtualInfiniteGrid
|
||||||
ref={gridRef}
|
ref={gridRef}
|
||||||
cardRows={cardRows}
|
cardRows={cardRows}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useQueryClient } from '@tanstack/react-query';
|
import { useQueryClient } from '@tanstack/react-query';
|
||||||
import { MutableRefObject, useCallback, useMemo } from 'react';
|
import { MutableRefObject, useCallback, useMemo } from 'react';
|
||||||
import AutoSizer from 'react-virtualized-auto-sizer';
|
import AutoSizer, { Size } from 'react-virtualized-auto-sizer';
|
||||||
import { ListOnScrollProps } from 'react-window';
|
import { ListOnScrollProps } from 'react-window';
|
||||||
import { useListContext } from '../../../context/list-context';
|
import { useListContext } from '../../../context/list-context';
|
||||||
import { useListStoreActions } from '../../../store/list.store';
|
import { useListStoreActions } from '../../../store/list.store';
|
||||||
@ -129,7 +129,7 @@ export const PlaylistListGridView = ({ gridRef, itemCount }: PlaylistListGridVie
|
|||||||
return (
|
return (
|
||||||
<VirtualGridAutoSizerContainer>
|
<VirtualGridAutoSizerContainer>
|
||||||
<AutoSizer>
|
<AutoSizer>
|
||||||
{({ height, width }) => (
|
{({ height, width }: Size) => (
|
||||||
<VirtualInfiniteGrid
|
<VirtualInfiniteGrid
|
||||||
key={`playlist-list-${server?.id}`}
|
key={`playlist-list-${server?.id}`}
|
||||||
ref={gridRef}
|
ref={gridRef}
|
||||||
|
Loading…
Reference in New Issue
Block a user