perf: action cache (#300)

This commit is contained in:
Archer
2023-09-13 22:17:55 +08:00
committed by GitHub
parent eb2e383cc7
commit 09b6365321
4 changed files with 59 additions and 17 deletions

View File

@@ -316,9 +316,10 @@ const FileCard = ({ kbId }: { kbId: string }) => {
<Box>{t('common.Delete')}</Box>
</Flex>
),
onClick: openConfirm(() => {
onDeleteFile(file.id);
})
onClick: () =>
openConfirm(() => {
onDeleteFile(file.id);
})()
}
]}
/>