[WEB-2023] chore: sidebar content update (#5195)
* chore: sidebar content update * chore: code refactor
This commit is contained in:
parent
68a211d00e
commit
0839666d81
3 changed files with 6 additions and 6 deletions
|
|
@ -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,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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/`),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue