From 1f3bc2c502c8c2bc843afeec24fc6ee4e3526b4d Mon Sep 17 00:00:00 2001 From: Akmal Isomadinov Date: Tue, 13 Aug 2024 16:14:31 +0500 Subject: [PATCH] Web:EmptyContainer Added empty screen for the trash page --- .../EmptyViewContainer.helpers.tsx | 5 ++ .../EmptyViewContainer.utils.tsx | 10 ++-- public/images/emptyview/empty.trash.dark.svg | 48 +++++++++++++++++++ public/images/emptyview/empty.trash.light.svg | 48 +++++++++++++++++++ 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 public/images/emptyview/empty.trash.dark.svg create mode 100644 public/images/emptyview/empty.trash.light.svg diff --git a/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx b/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx index 39828c4e0f..836c4d8e8e 100644 --- a/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx +++ b/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx @@ -325,6 +325,11 @@ export const getOptions = ( icon: , description: t("Files:GoToMyRooms"), })) + .with([FolderType.TRASH, P._], () => ({ + ...actions.onGoToPersonal(), + icon: , + description: t("Files:GoToPersonal"), + })) .otherwise(() => []); } diff --git a/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.utils.tsx b/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.utils.tsx index 8acb4a10cb..359ebb3c13 100644 --- a/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.utils.tsx +++ b/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.utils.tsx @@ -36,6 +36,8 @@ import EmptyRoomsRootLightIcon from "PUBLIC_DIR/images/emptyview/empty.rooms.roo import EmptyRecentDarkIcon from "PUBLIC_DIR/images/emptyview/empty.recent.dark.svg"; import EmptyRecentLightIcon from "PUBLIC_DIR/images/emptyview/empty.recent.light.svg"; +import EmptyTrashDarkIcon from "PUBLIC_DIR/images/emptyview/empty.trash.dark.svg"; +import EmptyTrashLightIcon from "PUBLIC_DIR/images/emptyview/empty.trash.light.svg"; import EmptyArchiveDarkIcon from "PUBLIC_DIR/images/emptyview/empty.archive.dark.svg"; import EmptyArchiveLightIcon from "PUBLIC_DIR/images/emptyview/empty.archive.light.svg"; @@ -189,7 +191,7 @@ export const getRootDesctiption = ( .with([FolderType.Archive, ShareAccessRights.DenyAccess], () => t("Files:ArchiveEmptyScreenUser"), ) - .with([FolderType.TRASH, P._], () => t("Test")) + .with([FolderType.TRASH, P._], () => t("Files:TrashEmptyDescription")) .otherwise(() => ""); }; @@ -280,7 +282,7 @@ export const getRootTitle = ( ) .with([FolderType.Recent, P._], () => t("Files:NoFilesHereYet")) .with([FolderType.Archive, P._], () => t("Files:ArchiveEmptyScreenHeader")) - .with([FolderType.TRASH, P._], () => t("Test")) + .with([FolderType.TRASH, P._], () => t("Files:EmptyScreenFolder")) .otherwise(() => ""); }; @@ -424,7 +426,9 @@ export const getRootIcom = ( ), ) - .with([FolderType.TRASH, P._], () =>
) + .with([FolderType.TRASH, P._], () => + isBaseTheme ? : , + ) .otherwise(() =>
); }; diff --git a/public/images/emptyview/empty.trash.dark.svg b/public/images/emptyview/empty.trash.dark.svg new file mode 100644 index 0000000000..7c47692d36 --- /dev/null +++ b/public/images/emptyview/empty.trash.dark.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/emptyview/empty.trash.light.svg b/public/images/emptyview/empty.trash.light.svg new file mode 100644 index 0000000000..13726231fc --- /dev/null +++ b/public/images/emptyview/empty.trash.light.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +