Fix useState TypeScript errors
This commit is contained in:
parent
9423041ef1
commit
23d321d426
10 changed files with 62 additions and 59 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue