1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 10:07:22 +00:00

Add description icon in the history modal

This commit is contained in:
LASER-Yi 2022-06-11 20:24:58 +08:00
parent 23022f5282
commit 738178a173

View file

@ -5,7 +5,8 @@ import {
useMovieHistory, useMovieHistory,
} from "@/apis/hooks"; } from "@/apis/hooks";
import { withModal } from "@/modules/modals"; import { withModal } from "@/modules/modals";
import { faFileExcel } from "@fortawesome/free-solid-svg-icons"; import { faFileExcel, faInfoCircle } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Badge, Center, Text } from "@mantine/core"; import { Badge, Center, Text } from "@mantine/core";
import { FunctionComponent, useMemo } from "react"; import { FunctionComponent, useMemo } from "react";
import { Column } from "react-table"; import { Column } from "react-table";
@ -177,6 +178,16 @@ const EpisodeHistoryView: FunctionComponent<EpisodeHistoryViewProps> = ({
); );
}, },
}, },
{
accessor: "description",
Cell: ({ value }) => {
return (
<TextPopover text={value}>
<FontAwesomeIcon size="sm" icon={faInfoCircle}></FontAwesomeIcon>
</TextPopover>
);
},
},
{ {
// Actions // Actions
accessor: "blacklisted", accessor: "blacklisted",