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

Fix useRef TypeScript errors

This commit is contained in:
Dmitry Lyzo 2022-02-15 23:47:59 +03:00
parent 57895e724c
commit 4952fc0119
8 changed files with 8 additions and 8 deletions

View file

@ -24,7 +24,7 @@ type ItemsArr = {
const NewUserPage: FunctionComponent = () => {
const [ channelsItems, setChannelsItems ] = useState([]);
const [ mediaFoldersItems, setMediaFoldersItems ] = useState([]);
const element = useRef(null);
const element = useRef<HTMLDivElement>(null);
const getItemsResult = (items: ItemsArr[]) => {
return items.map(item =>