mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
7f5028a4f6
* chore: move all workspace, project and profile links constants into their own constants file. * chore: sidebar menu links improvement.
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
import React from "react";
|
|
// icons
|
|
import { Activity, CircleUser, KeyRound, LucideProps, Settings2 } from "lucide-react";
|
|
|
|
export const PROFILE_ACTION_LINKS: {
|
|
key: string;
|
|
label: string;
|
|
href: string;
|
|
highlight: (pathname: string) => boolean;
|
|
Icon: React.FC<LucideProps>;
|
|
}[] = [
|
|
{
|
|
key: "profile",
|
|
label: "Profile",
|
|
href: `/profile`,
|
|
highlight: (pathname: string) => pathname === "/profile",
|
|
Icon: CircleUser,
|
|
},
|
|
{
|
|
key: "change-password",
|
|
label: "Change password",
|
|
href: `/profile/change-password`,
|
|
highlight: (pathname: string) => pathname === "/profile/change-password",
|
|
Icon: KeyRound,
|
|
},
|
|
{
|
|
key: "activity",
|
|
label: "Activity",
|
|
href: `/profile/activity`,
|
|
highlight: (pathname: string) => pathname === "/profile/activity",
|
|
Icon: Activity,
|
|
},
|
|
{
|
|
key: "preferences",
|
|
label: "Preferences",
|
|
href: `/profile/preferences`,
|
|
highlight: (pathname: string) => pathname.includes("/profile/preferences"),
|
|
Icon: Settings2,
|
|
},
|
|
];
|