Fixed missing subtitles language badge in movies view to show if it's forced or hi.

pull/1471/head
morpheus65535 4 years ago
parent 2428399206
commit 60353c0367

@ -9,7 +9,7 @@ import { movieUpdateByRange, movieUpdateList } from "../@redux/actions";
import { useRawMovies } from "../@redux/hooks"; import { useRawMovies } from "../@redux/hooks";
import { useReduxAction } from "../@redux/hooks/base"; import { useReduxAction } from "../@redux/hooks/base";
import { MoviesApi } from "../apis"; import { MoviesApi } from "../apis";
import { ActionBadge, TextPopover } from "../components"; import { ActionBadge, LanguageText, TextPopover } from "../components";
import BaseItemView from "../generic/BaseItemView"; import BaseItemView from "../generic/BaseItemView";
import { BuildKey } from "../utilites"; import { BuildKey } from "../utilites";
@ -89,7 +89,7 @@ const MovieView: FunctionComponent<Props> = () => {
variant="warning" variant="warning"
key={BuildKey(v.code2, v.hi, v.forced)} key={BuildKey(v.code2, v.hi, v.forced)}
> >
{v.code2} <LanguageText text={v}></LanguageText>
</Badge> </Badge>
)); ));
}, },

Loading…
Cancel
Save