remove showDeleteConfirm function and center the Empty of knowledge list and extract the text of the login page to en.json (#203)

feat: remove showDeleteConfirm function
feat: center the Empty of knowledge list
feat: extract the text of the login page to en.json
#204
This commit is contained in:
balibabu
2024-04-02 15:44:09 +08:00
committed by GitHub
parent f89c6c9d59
commit 2673be8bc1
16 changed files with 134 additions and 97 deletions

View File

@ -1,4 +1,4 @@
import showDeleteConfirm from '@/components/deleting-confirm';
import { useShowDeleteConfirm } from '@/hooks/commonHooks';
import { useRemoveDocument } from '@/hooks/documentHooks';
import { IKnowledgeFile } from '@/interfaces/database/knowledge';
import { api_host } from '@/utils/api';
@ -31,6 +31,7 @@ const ParsingActionCell = ({
const isRunning = isParserRunning(record.run);
const removeDocument = useRemoveDocument(documentId);
const showDeleteConfirm = useShowDeleteConfirm();
const onRmDocument = () => {
if (!isRunning) {