From 4063f2e39c5055576bc2cc6e3f10f76aa839c6ba Mon Sep 17 00:00:00 2001 From: qianzhu <36325249+syt-honey@users.noreply.github.com> Date: Thu, 17 Aug 2023 18:49:22 +0800 Subject: [PATCH] fix(style): fix empty img error (#2008) --- .../components/CloudStorage/CloudStorageFileList/index.tsx | 6 +----- .../components/HomePage/RoomList/RoomListEmpty/index.tsx | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/flat-components/src/components/CloudStorage/CloudStorageFileList/index.tsx b/packages/flat-components/src/components/CloudStorage/CloudStorageFileList/index.tsx index 619de3cc2d2..72112135c6d 100644 --- a/packages/flat-components/src/components/CloudStorage/CloudStorageFileList/index.tsx +++ b/packages/flat-components/src/components/CloudStorage/CloudStorageFileList/index.tsx @@ -162,11 +162,7 @@ export const CloudStorageFileList: React.FC = ({ {files.length <= 0 && (
- +
{t("no-data")}
diff --git a/packages/flat-components/src/components/HomePage/RoomList/RoomListEmpty/index.tsx b/packages/flat-components/src/components/HomePage/RoomList/RoomListEmpty/index.tsx index 4d036f9ba6a..24da094c876 100644 --- a/packages/flat-components/src/components/HomePage/RoomList/RoomListEmpty/index.tsx +++ b/packages/flat-components/src/components/HomePage/RoomList/RoomListEmpty/index.tsx @@ -19,7 +19,6 @@ export const RoomListEmpty: React.FC = ({ isHistory }) => {
empty = ({ isHistory }) => { ? emptyRoomDarkSVG : emptyRoomSVG } - width="160px" + width={160} /> {isHistory ? t("no-record") : t("no-room")}