feat: add file icon and add message popover content (#77)

* feat: add message popover content

* feat: add file icon
This commit is contained in:
balibabu
2024-02-27 19:05:50 +08:00
committed by GitHub
parent 1567e881de
commit eb517f3106
52 changed files with 667 additions and 45 deletions

View File

@ -1,6 +1,6 @@
import { ReactComponent as NavigationPointerIcon } from '@/assets/svg/navigation-pointer.svg';
import NewDocumentLink from '@/components/new-document-link';
import { ITestingDocument } from '@/interfaces/database/knowledge';
import { api_host } from '@/utils/api';
import { Table, TableProps } from 'antd';
import { useDispatch, useSelector } from 'umi';
@ -34,13 +34,9 @@ const SelectFiles = ({ handleTesting }: IProps) => {
key: 'view',
width: 50,
render: (_, { doc_id }) => (
<a
href={`${api_host}/document/get/${doc_id}`}
target="_blank"
rel="noreferrer"
>
<NewDocumentLink documentId={doc_id}>
<NavigationPointerIcon />
</a>
</NewDocumentLink>
),
},
];