1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-19 21:46:43 -04:00

Convert Menu components to TypeScript

This commit is contained in:
Mark McDowall
2024-12-22 15:41:53 -08:00
parent ac7ac34cc2
commit 5dfb5de863
42 changed files with 749 additions and 1018 deletions
@@ -77,8 +77,6 @@ type SelectType =
| 'indexerFlags'
| 'releaseType';
type FilterExistingFiles = 'all' | 'new';
// TODO: This feels janky to do, but not sure of a better way currently
type OnSelectedChangeCallback = React.ComponentProps<
typeof InteractiveImportRow
@@ -641,10 +639,8 @@ function InteractiveImportModalContent(
[dispatch]
);
const onFilterExistingFilesChange = useCallback<
(value: FilterExistingFiles) => void
>(
(value) => {
const onFilterExistingFilesChange = useCallback(
(value: string | undefined) => {
const filter = value !== 'all';
setFilterExistingFiles(filter);