[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 />
<SidebarQuickActions />
<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,
})}
/>
<SidebarUserMenu />
<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,
})}
/>
<SidebarWorkspaceMenu />
<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,
})}
/>

View file

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

View file

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