1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

Improve typings for Select Input options

This commit is contained in:
Bogdan
2025-04-17 16:10:48 +03:00
committed by Mark McDowall
parent 1047e71b7d
commit e537a2dc8f
4 changed files with 24 additions and 10 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import React, { useCallback, useMemo, useState } from 'react';
import SelectInput from 'Components/Form/SelectInput';
import SelectInput, { SelectInputOption } from 'Components/Form/SelectInput';
import Icon from 'Components/Icon';
import Link from 'Components/Link/Link';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
@@ -34,7 +34,7 @@ function TablePager({
const isLastPage = page === totalPages;
const pages = useMemo(() => {
return Array.from(new Array(totalPages), (_x, i) => {
return Array.from(new Array(totalPages), (_x, i): SelectInputOption => {
const pageNumber = i + 1;
return {