1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-19 21:46:43 -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
@@ -2,6 +2,7 @@ import React, { useCallback, useState } from 'react';
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 Button from 'Components/Link/Button';
import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
@@ -31,7 +32,7 @@ interface EditSeriesModalContentProps {
const NO_CHANGE = 'noChange';
const monitoredOptions = [
const monitoredOptions: EnhancedSelectInputValue<string>[] = [
{
key: NO_CHANGE,
get value() {
@@ -53,7 +54,7 @@ const monitoredOptions = [
},
];
const seasonFolderOptions = [
const seasonFolderOptions: EnhancedSelectInputValue<string>[] = [
{
key: NO_CHANGE,
get value() {