|
|
@ -16,6 +16,7 @@ import { useReduxAction } from "../@redux/hooks/base";
|
|
|
|
import { MoviesApi } from "../apis";
|
|
|
|
import { MoviesApi } from "../apis";
|
|
|
|
import { ActionBadge, TextPopover } from "../components";
|
|
|
|
import { ActionBadge, TextPopover } from "../components";
|
|
|
|
import BaseItemView from "../generic/BaseItemView";
|
|
|
|
import BaseItemView from "../generic/BaseItemView";
|
|
|
|
|
|
|
|
import { BuildKey } from "../utilites";
|
|
|
|
|
|
|
|
|
|
|
|
interface Props {}
|
|
|
|
interface Props {}
|
|
|
|
|
|
|
|
|
|
|
@ -73,7 +74,11 @@ const MovieView: FunctionComponent<Props> = () => {
|
|
|
|
accessor: "audio_language",
|
|
|
|
accessor: "audio_language",
|
|
|
|
Cell: (row) => {
|
|
|
|
Cell: (row) => {
|
|
|
|
return row.value.map((v) => (
|
|
|
|
return row.value.map((v) => (
|
|
|
|
<Badge variant="secondary" className="mr-2" key={v.code2}>
|
|
|
|
<Badge
|
|
|
|
|
|
|
|
variant="secondary"
|
|
|
|
|
|
|
|
className="mr-2"
|
|
|
|
|
|
|
|
key={BuildKey(v.code2, v.code2, v.hi)}
|
|
|
|
|
|
|
|
>
|
|
|
|
{v.name}
|
|
|
|
{v.name}
|
|
|
|
</Badge>
|
|
|
|
</Badge>
|
|
|
|
));
|
|
|
|
));
|
|
|
@ -99,7 +104,11 @@ const MovieView: FunctionComponent<Props> = () => {
|
|
|
|
Cell: (row) => {
|
|
|
|
Cell: (row) => {
|
|
|
|
const missing = row.value;
|
|
|
|
const missing = row.value;
|
|
|
|
return missing.map((v) => (
|
|
|
|
return missing.map((v) => (
|
|
|
|
<Badge className="mx-2" variant="warning" key={v.code2}>
|
|
|
|
<Badge
|
|
|
|
|
|
|
|
className="mx-2"
|
|
|
|
|
|
|
|
variant="warning"
|
|
|
|
|
|
|
|
key={BuildKey(v.code2, v.hi, v.forced)}
|
|
|
|
|
|
|
|
>
|
|
|
|
{v.code2}
|
|
|
|
{v.code2}
|
|
|
|
</Badge>
|
|
|
|
</Badge>
|
|
|
|
));
|
|
|
|
));
|
|
|
|