From ec955e064bf314112bd9c0566fb1f54e98e6f7c6 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:44:03 +0530 Subject: [PATCH] [WEB-1559] chore: App switcher component added (#4793) * chore: dummy app switcher component added * chore: add export statement for the logo --- web/ce/components/sidebar/app-switcher.tsx | 1 + web/ce/components/sidebar/index.ts | 1 + web/core/components/workspace/index.ts | 1 + web/core/components/workspace/sidebar-dropdown.tsx | 4 ++++ 4 files changed, 7 insertions(+) create mode 100644 web/ce/components/sidebar/app-switcher.tsx create mode 100644 web/ce/components/sidebar/index.ts diff --git a/web/ce/components/sidebar/app-switcher.tsx b/web/ce/components/sidebar/app-switcher.tsx new file mode 100644 index 000000000..53492e6b6 --- /dev/null +++ b/web/ce/components/sidebar/app-switcher.tsx @@ -0,0 +1 @@ +export const AppSwitcher = () => null; diff --git a/web/ce/components/sidebar/index.ts b/web/ce/components/sidebar/index.ts new file mode 100644 index 000000000..5cda1afb5 --- /dev/null +++ b/web/ce/components/sidebar/index.ts @@ -0,0 +1 @@ +export * from "./app-switcher"; diff --git a/web/core/components/workspace/index.ts b/web/core/components/workspace/index.ts index 579a4c752..decb52b3c 100644 --- a/web/core/components/workspace/index.ts +++ b/web/core/components/workspace/index.ts @@ -4,6 +4,7 @@ export * from "./confirm-workspace-member-remove"; export * from "./create-workspace-form"; export * from "./delete-workspace-modal"; export * from "./help-section"; +export * from "./logo"; export * from "./send-workspace-invitation-modal"; export * from "./sidebar-dropdown"; export * from "./sidebar-menu"; diff --git a/web/core/components/workspace/sidebar-dropdown.tsx b/web/core/components/workspace/sidebar-dropdown.tsx index 37fe7bbd9..a75607b21 100644 --- a/web/core/components/workspace/sidebar-dropdown.tsx +++ b/web/core/components/workspace/sidebar-dropdown.tsx @@ -16,7 +16,10 @@ import { Avatar, Loader, TOAST_TYPE, setToast } from "@plane/ui"; import { GOD_MODE_URL } from "@/helpers/common.helper"; // hooks import { useAppTheme, useUser, useUserProfile, useWorkspace } from "@/hooks/store"; +// plane web components +import { AppSwitcher } from "@/plane-web/components/sidebar"; import { WorkspaceLogo } from "./logo"; + // Static Data const userLinks = (workspaceSlug: string) => [ { @@ -137,6 +140,7 @@ export const WorkspaceSidebarDropdown = observer(() => {
{currentUser?.email}
+ {workspacesList ? (
{workspacesList.length > 0 &&