mirror of
https://github.com/Radarr/Radarr
synced 2025-12-26 18:24:03 +01:00
Simplify props for MovieInteractiveSearchModal
This commit is contained in:
parent
7219648fea
commit
aae34f4c43
2 changed files with 11 additions and 11 deletions
|
|
@ -8,13 +8,13 @@ import {
|
|||
cancelFetchReleases,
|
||||
clearReleases,
|
||||
} from 'Store/Actions/releaseActions';
|
||||
import MovieInteractiveSearchModalContent from './MovieInteractiveSearchModalContent';
|
||||
import MovieInteractiveSearchModalContent, {
|
||||
MovieInteractiveSearchModalContentProps,
|
||||
} from './MovieInteractiveSearchModalContent';
|
||||
|
||||
interface MovieInteractiveSearchModalProps {
|
||||
interface MovieInteractiveSearchModalProps
|
||||
extends MovieInteractiveSearchModalContentProps {
|
||||
isOpen: boolean;
|
||||
movieId: number;
|
||||
movieTitle?: string;
|
||||
onModalClose(): void;
|
||||
}
|
||||
|
||||
function MovieInteractiveSearchModal(props: MovieInteractiveSearchModalProps) {
|
||||
|
|
|
|||
|
|
@ -15,17 +15,17 @@ import {
|
|||
} from 'Store/Actions/releaseActions';
|
||||
import translate from 'Utilities/String/translate';
|
||||
|
||||
interface MovieInteractiveSearchModalContentProps {
|
||||
export interface MovieInteractiveSearchModalContentProps {
|
||||
movieId: number;
|
||||
movieTitle?: string;
|
||||
onModalClose(): void;
|
||||
}
|
||||
|
||||
function MovieInteractiveSearchModalContent(
|
||||
props: MovieInteractiveSearchModalContentProps
|
||||
) {
|
||||
const { movieId, movieTitle, onModalClose } = props;
|
||||
|
||||
function MovieInteractiveSearchModalContent({
|
||||
movieId,
|
||||
movieTitle,
|
||||
onModalClose,
|
||||
}: MovieInteractiveSearchModalContentProps) {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue