[WEB-2023] chore: sidebar content update (#5195)

* chore: sidebar content update

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2024-07-22 19:23:31 +05:30 committed by GitHub
parent 68a211d00e
commit 0839666d81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -62,19 +62,19 @@ export const AppSidebar: FC<IAppSidebar> = observer(() => {
<SidebarAppSwitcher /> <SidebarAppSwitcher />
<SidebarQuickActions /> <SidebarQuickActions />
<hr <hr
className={cn("flex-shrink-0 border-custom-sidebar-border-300 h-[0.5px] w-3/5 mx-auto my-2", { className={cn("flex-shrink-0 border-custom-sidebar-border-300 h-[0.5px] w-3/5 mx-auto my-1", {
"opacity-0": !sidebarCollapsed, "opacity-0": !sidebarCollapsed,
})} })}
/> />
<SidebarUserMenu /> <SidebarUserMenu />
<hr <hr
className={cn("flex-shrink-0 border-custom-sidebar-border-300 h-[0.5px] w-3/5 mx-auto my-2", { className={cn("flex-shrink-0 border-custom-sidebar-border-300 h-[0.5px] w-3/5 mx-auto my-1", {
"opacity-0": !sidebarCollapsed, "opacity-0": !sidebarCollapsed,
})} })}
/> />
<SidebarWorkspaceMenu /> <SidebarWorkspaceMenu />
<hr <hr
className={cn("flex-shrink-0 border-custom-sidebar-border-300 h-[0.5px] w-3/5 mx-auto my-2", { className={cn("flex-shrink-0 border-custom-sidebar-border-300 h-[0.5px] w-3/5 mx-auto my-1", {
"opacity-0": !sidebarCollapsed, "opacity-0": !sidebarCollapsed,
})} })}
/> />

View file

@ -161,7 +161,7 @@ export const SidebarProjectsList: FC = observer(() => {
{ {
key: "all", key: "all",
type: "JOINED", type: "JOINED",
title: "MY PROJECTS", title: "YOUR PROJECTS",
icon: Briefcase, icon: Briefcase,
projects: joinedProjects, projects: joinedProjects,
isOpen: isAllProjectsListOpen, isOpen: isAllProjectsListOpen,

View file

@ -310,8 +310,8 @@ export const SIDEBAR_USER_MENU_ITEMS: {
Icon: Home, Icon: Home,
}, },
{ {
key: "my-work", key: "your-work",
label: "My Work", label: "Your work",
href: "/profile", href: "/profile",
access: EUserWorkspaceRoles.GUEST, access: EUserWorkspaceRoles.GUEST,
highlight: (pathname: string, baseUrl: string) => pathname.includes(`${baseUrl}/profile/`), highlight: (pathname: string, baseUrl: string) => pathname.includes(`${baseUrl}/profile/`),