From d31aaee32c79fafd6ad529f5833bb7c8d0a48af6 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 7 Jun 2024 12:22:30 +0530 Subject: [PATCH] [WEB-1529] chore: workspace sidebar updates. (#4710) --- web/components/workspace/sidebar-dropdown.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/web/components/workspace/sidebar-dropdown.tsx b/web/components/workspace/sidebar-dropdown.tsx index 9c7ce78cf..12b58eeca 100644 --- a/web/components/workspace/sidebar-dropdown.tsx +++ b/web/components/workspace/sidebar-dropdown.tsx @@ -16,22 +16,16 @@ import { GOD_MODE_URL } from "@/helpers/common.helper"; import { useAppTheme, useUser, useUserProfile, useWorkspace } from "@/hooks/store"; import { WorkspaceLogo } from "./logo"; // Static Data -const userLinks = (workspaceSlug: string, userId: string) => [ +const userLinks = (workspaceSlug: string) => [ { key: "workspace_invites", name: "Workspace invites", href: "/invitations", icon: Mails, }, - { - key: "my_activity", - name: "My activity", - href: `/${workspaceSlug}/profile/${userId}`, - icon: Activity, - }, { key: "settings", - name: "Settings", + name: "Workspace settings", href: `/${workspaceSlug}/settings`, icon: Settings, }, @@ -211,7 +205,7 @@ export const WorkspaceSidebarDropdown = observer(() => { Create workspace - {userLinks(workspaceSlug?.toString() ?? "", currentUser?.id ?? "").map((link, index) => ( + {userLinks(workspaceSlug?.toString() ?? "").map((link, index) => (