From bbef1590a3e418e7fd2c5ca41357bc765bbf4e05 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 25 Aug 2023 04:22:40 +0300 Subject: [PATCH] Remove duplicate Language interface --- frontend/src/Movie/Index/Posters/MovieIndexPosterInfo.tsx | 3 ++- frontend/src/Movie/Movie.ts | 6 +----- frontend/src/MovieFile/MovieFile.ts | 3 ++- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/Movie/Index/Posters/MovieIndexPosterInfo.tsx b/frontend/src/Movie/Index/Posters/MovieIndexPosterInfo.tsx index d184f68ae..61936dfa7 100644 --- a/frontend/src/Movie/Index/Posters/MovieIndexPosterInfo.tsx +++ b/frontend/src/Movie/Index/Posters/MovieIndexPosterInfo.tsx @@ -4,7 +4,8 @@ import ImdbRating from 'Components/ImdbRating'; import RottenTomatoRating from 'Components/RottenTomatoRating'; import TmdbRating from 'Components/TmdbRating'; import { icons } from 'Helpers/Props'; -import { Language, Ratings } from 'Movie/Movie'; +import Language from 'Language/Language'; +import { Ratings } from 'Movie/Movie'; import QualityProfile from 'typings/QualityProfile'; import formatDateTime from 'Utilities/Date/formatDateTime'; import getRelativeDate from 'Utilities/Date/getRelativeDate'; diff --git a/frontend/src/Movie/Movie.ts b/frontend/src/Movie/Movie.ts index b81917032..6301734ad 100644 --- a/frontend/src/Movie/Movie.ts +++ b/frontend/src/Movie/Movie.ts @@ -1,4 +1,5 @@ import ModelBase from 'App/ModelBase'; +import Language from 'Language/Language'; import { MovieFile } from 'MovieFile/MovieFile'; export interface Image { @@ -7,11 +8,6 @@ export interface Image { remoteUrl: string; } -export interface Language { - id: number; - name: string; -} - export interface Collection { title: string; } diff --git a/frontend/src/MovieFile/MovieFile.ts b/frontend/src/MovieFile/MovieFile.ts index 7f0c3ce86..623270e22 100644 --- a/frontend/src/MovieFile/MovieFile.ts +++ b/frontend/src/MovieFile/MovieFile.ts @@ -1,4 +1,5 @@ import ModelBase from 'App/ModelBase'; +import Language from 'Language/Language'; import { QualityModel } from 'Quality/Quality'; import CustomFormat from 'typings/CustomFormat'; import MediaInfo from 'typings/MediaInfo'; @@ -11,7 +12,7 @@ export interface MovieFile extends ModelBase { dateAdded: string; sceneName: string; releaseGroup: string; - languages: CustomFormat[]; + languages: Language[]; quality: QualityModel; customFormats: CustomFormat[]; mediaInfo: MediaInfo;