fix: linter

This commit is contained in:
Lei Nelissen
2024-01-31 22:17:58 +01:00
parent 7cb4629b4a
commit 26198e5fe6
4 changed files with 723 additions and 677 deletions

View File

@@ -48,7 +48,7 @@ const Playlists: React.FC = () => {
const getImage = useGetImage();
const listRef = useRef<FlatList<EntityId>>(null);
const getItemLayout = useCallback((data: EntityId[] | null | undefined, index: number): { offset: number, length: number, index: number } => {
const getItemLayout = useCallback((data: ArrayLike<EntityId> | null | undefined, index: number): { offset: number, length: number, index: number } => {
const length = 220;
const offset = length * index;
return { index, length, offset };