From f153145e0d3c19df256a0329fe1b92121d0d55a7 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 29 Jan 2024 19:01:50 +0800 Subject: [PATCH] refactor: add audit log list empty state --- src/client/pages/Settings/AuditLog.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/pages/Settings/AuditLog.tsx b/src/client/pages/Settings/AuditLog.tsx index 2b414bc..2554438 100644 --- a/src/client/pages/Settings/AuditLog.tsx +++ b/src/client/pages/Settings/AuditLog.tsx @@ -1,4 +1,4 @@ -import { Card, List } from 'antd'; +import { Card, Empty, List } from 'antd'; import React, { useMemo, useRef } from 'react'; import { useCurrentWorkspaceId } from '../../store/user'; import { PageHeader } from '../../components/PageHeader'; @@ -58,6 +58,8 @@ export const AuditLog: React.FC = React.memo(() => {
+ {virtualItems.length === 0 && } +