mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-19 21:46:43 -04:00
Convert Table to TypeScript
This commit is contained in:
@@ -58,7 +58,7 @@ import {
|
||||
} from 'Store/Actions/interactiveImportActions';
|
||||
import createClientSideCollectionSelector from 'Store/Selectors/createClientSideCollectionSelector';
|
||||
import { SortCallback } from 'typings/callbacks';
|
||||
import { SelectStateInputProps } from 'typings/props';
|
||||
import { CheckInputChanged } from 'typings/inputs';
|
||||
import getErrorMessage from 'Utilities/Object/getErrorMessage';
|
||||
import hasDifferentItems from 'Utilities/Object/hasDifferentItems';
|
||||
import translate from 'Utilities/String/translate';
|
||||
@@ -431,7 +431,7 @@ function InteractiveImportModalContent(
|
||||
}, [previousIsDeleting, isDeleting, deleteError, onModalClose]);
|
||||
|
||||
const onSelectAllChange = useCallback(
|
||||
({ value }: SelectStateInputProps) => {
|
||||
({ value }: CheckInputChanged) => {
|
||||
setSelectState({ type: value ? 'selectAll' : 'unselectAll', items });
|
||||
},
|
||||
[items, setSelectState]
|
||||
@@ -449,8 +449,8 @@ function InteractiveImportModalContent(
|
||||
|
||||
setWithoutEpisodeFileIdRowsSelected(
|
||||
hasEpisodeFileId || !value
|
||||
? without(withoutEpisodeFileIdRowsSelected, id)
|
||||
: [...withoutEpisodeFileIdRowsSelected, id]
|
||||
? without(withoutEpisodeFileIdRowsSelected, id as number)
|
||||
: [...withoutEpisodeFileIdRowsSelected, id as number]
|
||||
);
|
||||
},
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user