From 2ad104732389ec37bf6c344a16e874ec8a664055 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:16:23 +0530 Subject: [PATCH] [WEB-1982] chore: sidebar navigation item refactor (#5184) * chore: sidebar navigation item refactor * chore: module and cycle sidebar padding adjustment --- .../(detail)/[projectId]/settings/sidebar.tsx | 14 ++++++------ .../(projects)/settings/sidebar.tsx | 20 ++++++++--------- web/app/profile/sidebar.tsx | 22 ++++++++++--------- .../cycles/analytics-sidebar/root.tsx | 7 ++++-- .../components/cycles/cycle-peek-overview.tsx | 1 + .../modules/analytics-sidebar/root.tsx | 7 ++++-- .../modules/module-peek-overview.tsx | 1 + 7 files changed, 40 insertions(+), 32 deletions(-) diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx index af5e5355a..0b9a94f82 100644 --- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx +++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/settings/sidebar.tsx @@ -5,6 +5,8 @@ import Link from "next/link"; import { useParams, usePathname } from "next/navigation"; // ui import { Loader } from "@plane/ui"; +// components +import { SidebarNavItem } from "@/components/sidebar"; // constants import { EUserProjectRoles, PROJECT_SETTINGS_LINKS } from "@/constants/project"; // hooks @@ -44,15 +46,13 @@ export const ProjectSettingsSidebar = () => { (link) => projectMemberInfo >= link.access && ( -
{link.label}
} +