1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Improve typings for enhanced select options

This commit is contained in:
Bogdan
2025-04-18 12:46:58 +03:00
committed by Mark McDowall
parent e537a2dc8f
commit 9fdf545f47
24 changed files with 78 additions and 48 deletions
@@ -3,6 +3,7 @@ import FieldSet from 'Components/FieldSet';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import { EnhancedSelectInputValue } from 'Components/Form/Select/EnhancedSelectInput';
import useShowAdvancedSettings from 'Helpers/Hooks/useShowAdvancedSettings';
import { inputTypes, sizes } from 'Helpers/Props';
import useSystemStatus from 'System/useSystemStatus';
@@ -38,7 +39,7 @@ function UpdateSettings({
const usingExternalUpdateMechanism = packageUpdateMechanism !== 'builtIn';
const updateOptions = [];
const updateOptions: EnhancedSelectInputValue<string>[] = [];
if (usingExternalUpdateMechanism) {
updateOptions.push({