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
1 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,8 @@ import {
useMovieHistory,
} from "@/apis/hooks";
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 { FunctionComponent, useMemo } from "react";
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
accessor: "blacklisted",