1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix eslint errors

This commit is contained in:
Bill Thornton 2024-08-21 02:54:09 -04:00
parent 018d8d3f83
commit 8a6f33fff8
18 changed files with 48 additions and 48 deletions

View file

@ -2,12 +2,12 @@ import { MutableRefObject, useLayoutEffect, useRef, useState } from 'react';
import useResizeObserver from '@react-hook/resize-observer';
interface Size {
width: number;
height: number;
width: number;
height: number;
}
export default function useElementSize<
T extends HTMLElement = HTMLDivElement
T extends HTMLElement = HTMLDivElement
>(): [MutableRefObject<T | null>, Size] {
const target = useRef<T | null>(null);
const [size, setSize] = useState<Size>({