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

Fix TypeScript error - add argument

This commit is contained in:
Dmitry Lyzo 2022-02-15 23:45:52 +03:00
parent 11b77285e3
commit cd40ab5084
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ import React, { FunctionComponent, useEffect, useRef, useState } from 'react';
import AlphaPicker from './alphaPicker'; import AlphaPicker from './alphaPicker';
type AlphaPickerProps = { type AlphaPickerProps = {
onAlphaPicked?: () => void onAlphaPicked?: (e: Event) => void
}; };
// React compatibility wrapper component for alphaPicker.js // React compatibility wrapper component for alphaPicker.js

View file

@ -31,7 +31,7 @@ const createInputElement = () => ({
const normalizeInput = (value = '') => value.trim(); const normalizeInput = (value = '') => value.trim();
type SearchFieldsProps = { type SearchFieldsProps = {
onSearch?: () => void onSearch?: (query: string) => void
}; };
// eslint-disable-next-line @typescript-eslint/no-empty-function // eslint-disable-next-line @typescript-eslint/no-empty-function