Fix useState TypeScript errors

This commit is contained in:
Dmitry Lyzo 2022-02-15 23:49:46 +03:00
parent 9423041ef1
commit 23d321d426
10 changed files with 62 additions and 59 deletions

View file

@ -1,4 +1,4 @@
import { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client';
import React, {FunctionComponent, useEffect, useState, useRef} from 'react';
import Dashboard from '../../scripts/clientUtils';
import globalize from '../../scripts/globalize';
@ -21,7 +21,7 @@ type MenuEntry = {
}
const UserProfilesPage: FunctionComponent = () => {
const [ users, setUsers ] = useState([]);
const [ users, setUsers ] = useState<UserDto[]>([]);
const element = useRef<HTMLDivElement>(null);