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

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

@ -9,7 +9,7 @@ type AlphaPickerProps = {
// React compatibility wrapper component for alphaPicker.js
// eslint-disable-next-line @typescript-eslint/no-empty-function
const AlphaPickerComponent: FunctionComponent<AlphaPickerProps> = ({ onAlphaPicked = () => {} }: AlphaPickerProps) => {
const [ alphaPicker, setAlphaPicker ] = useState(null);
const [ alphaPicker, setAlphaPicker ] = useState<AlphaPicker>();
const element = useRef<HTMLDivElement>(null);
useEffect(() => {