mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
Convert Form Components to TypeScript
This commit is contained in:
@@ -310,7 +310,7 @@ function NamingModal(props: NamingModalProps) {
|
||||
);
|
||||
|
||||
const handleInputSelectionChange = useCallback(
|
||||
(selectionStart: number, selectionEnd: number) => {
|
||||
(selectionStart: number | null, selectionEnd: number | null) => {
|
||||
setSelectionStart(selectionStart);
|
||||
setSelectionEnd(selectionEnd);
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}
|
||||
|
||||
.tagInternalInput {
|
||||
composes: internalInput from '~Components/Form/TagInput.css';
|
||||
composes: internalInput from '~Components/Form/Tag/TagInput.css';
|
||||
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React, { useCallback } from 'react';
|
||||
// @ts-expect-error 'MiddleTruncate' isn't typed
|
||||
import MiddleTruncate from 'react-middle-truncate';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { Tag } from 'App/State/TagsAppState';
|
||||
|
||||
Reference in New Issue
Block a user