mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
[WEB-1529] chore: workspace sidebar updates. (#4710)
This commit is contained in:
parent
9af9268be6
commit
d31aaee32c
@ -16,22 +16,16 @@ import { GOD_MODE_URL } from "@/helpers/common.helper";
|
|||||||
import { useAppTheme, useUser, useUserProfile, useWorkspace } from "@/hooks/store";
|
import { useAppTheme, useUser, useUserProfile, useWorkspace } from "@/hooks/store";
|
||||||
import { WorkspaceLogo } from "./logo";
|
import { WorkspaceLogo } from "./logo";
|
||||||
// Static Data
|
// Static Data
|
||||||
const userLinks = (workspaceSlug: string, userId: string) => [
|
const userLinks = (workspaceSlug: string) => [
|
||||||
{
|
{
|
||||||
key: "workspace_invites",
|
key: "workspace_invites",
|
||||||
name: "Workspace invites",
|
name: "Workspace invites",
|
||||||
href: "/invitations",
|
href: "/invitations",
|
||||||
icon: Mails,
|
icon: Mails,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: "my_activity",
|
|
||||||
name: "My activity",
|
|
||||||
href: `/${workspaceSlug}/profile/${userId}`,
|
|
||||||
icon: Activity,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: "settings",
|
key: "settings",
|
||||||
name: "Settings",
|
name: "Workspace settings",
|
||||||
href: `/${workspaceSlug}/settings`,
|
href: `/${workspaceSlug}/settings`,
|
||||||
icon: Settings,
|
icon: Settings,
|
||||||
},
|
},
|
||||||
@ -211,7 +205,7 @@ export const WorkspaceSidebarDropdown = observer(() => {
|
|||||||
Create workspace
|
Create workspace
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
</Link>
|
</Link>
|
||||||
{userLinks(workspaceSlug?.toString() ?? "", currentUser?.id ?? "").map((link, index) => (
|
{userLinks(workspaceSlug?.toString() ?? "").map((link, index) => (
|
||||||
<Link
|
<Link
|
||||||
key={link.key}
|
key={link.key}
|
||||||
href={link.href}
|
href={link.href}
|
||||||
|
Loading…
Reference in New Issue
Block a user