Add description icon in the history modal

pull/1874/head v1.0.5-beta.25
LASER-Yi 2 years ago
parent 23022f5282
commit 738178a173

@ -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",

Loading…
Cancel
Save