diff --git a/packages/client/src/pages/Home/Section/AccountsBody/EmptyScreen.js b/packages/client/src/pages/Home/Section/AccountsBody/EmptyScreen.js index d5a86b17cf..8ba6cd445b 100644 --- a/packages/client/src/pages/Home/Section/AccountsBody/EmptyScreen.js +++ b/packages/client/src/pages/Home/Section/AccountsBody/EmptyScreen.js @@ -24,18 +24,16 @@ // content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 // International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode -import EmptyScreenPersonSvgUrl from "PUBLIC_DIR/images/empty_screen_persons.svg?url"; -import EmptyScreenPersonSvgDarkUrl from "PUBLIC_DIR/images/empty_screen_persons_dark.svg?url"; -import ClearEmptyFilterSvgUrl from "PUBLIC_DIR/images/clear.empty.filter.svg?url"; import React from "react"; import { inject, observer } from "mobx-react"; import { useTranslation } from "react-i18next"; -import { EmptyScreenContainer } from "@docspace/shared/components/empty-screen-container"; -import { IconButton } from "@docspace/shared/components/icon-button"; -import { Link } from "@docspace/shared/components/link"; -import { Box } from "@docspace/shared/components/box"; -import { Grid } from "@docspace/shared/components/grid"; +import EmptyScreenPersonSvgLight from "PUBLIC_DIR/images/emptyFilter/empty.filter.people.light.svg"; +import EmptyScreenPersonSvgDark from "PUBLIC_DIR/images/emptyFilter/empty.filter.people.dark.svg"; + +import ClearEmptyFilterSvg from "PUBLIC_DIR/images/clear.empty.filter.svg"; + +import { EmptyView } from "@docspace/shared/components/empty-view"; const EmptyScreen = ({ resetFilter, @@ -49,50 +47,34 @@ const EmptyScreen = ({ const title = t("Common:NotFoundUsers"); const description = t("Common:NotFoundUsersDescription"); - const onResetFilter = () => { + /** + * @type {React.MouseEventHandler} + */ + const onResetFilter = (event) => { + event.preventDefault(); + setIsLoading(true); isPeopleAccounts ? resetFilter() : resetInsideGroupFilter(); }; - const imageSrc = theme.isBase - ? EmptyScreenPersonSvgUrl - : EmptyScreenPersonSvgDarkUrl; + const imageSrc = theme.isBase ? ( + + ) : ( + + ); + return ( - <> - - { - <> - - - - - - {t("Common:ClearFilter")} - - - - } - - } - /> - + , + onClick: onResetFilter, + }} + /> ); }; diff --git a/public/images/emptyFilter/empty.filter.people.dark.svg b/public/images/emptyFilter/empty.filter.people.dark.svg new file mode 100644 index 0000000000..5b47365d2b --- /dev/null +++ b/public/images/emptyFilter/empty.filter.people.dark.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/emptyFilter/empty.filter.people.light.svg b/public/images/emptyFilter/empty.filter.people.light.svg new file mode 100644 index 0000000000..83e13f7cfe --- /dev/null +++ b/public/images/emptyFilter/empty.filter.people.light.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +