forked from github/plane
fix: adding links to the sidebar
This commit is contained in:
parent
10bdcc906c
commit
d9bd43f43c
@ -253,32 +253,31 @@ export const ProjectSidebarListItem: React.FC<Props> = observer((props) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{project.archive_in > 0 && (
|
{project.archive_in > 0 && (
|
||||||
<CustomMenu.MenuItem
|
<CustomMenu.MenuItem>
|
||||||
onClick={() => router.push(`/${workspaceSlug}/projects/${project?.id}/archived-issues/`)}
|
<Link href={`/${workspaceSlug}/projects/${project?.id}/archived-issues/`}>
|
||||||
>
|
<div className="flex items-center justify-start gap-2">
|
||||||
<div className="flex items-center justify-start gap-2">
|
<ArchiveIcon className="h-3.5 w-3.5 stroke-[1.5]" />
|
||||||
<ArchiveIcon className="h-3.5 w-3.5 stroke-[1.5]" />
|
<span>Archived Issues</span>
|
||||||
<span>Archived Issues</span>
|
</div>
|
||||||
</div>
|
</Link>
|
||||||
</CustomMenu.MenuItem>
|
</CustomMenu.MenuItem>
|
||||||
)}
|
)}
|
||||||
<CustomMenu.MenuItem
|
<CustomMenu.MenuItem>
|
||||||
onClick={() => router.push(`/${workspaceSlug}/projects/${project?.id}/draft-issues`)}
|
<Link href={`/${workspaceSlug}/projects/${project?.id}/draft-issues/`}>
|
||||||
>
|
<div className="flex items-center justify-start gap-2">
|
||||||
<div className="flex items-center justify-start gap-2">
|
<PenSquare className="h-3.5 w-3.5 stroke-[1.5] text-custom-text-300" />
|
||||||
<PenSquare className="h-3.5 w-3.5 stroke-[1.5] text-custom-text-300" />
|
<span>Draft Issues</span>
|
||||||
<span>Draft Issues</span>
|
</div>
|
||||||
</div>
|
</Link>
|
||||||
</CustomMenu.MenuItem>
|
</CustomMenu.MenuItem>
|
||||||
<CustomMenu.MenuItem
|
<CustomMenu.MenuItem>
|
||||||
onClick={() => router.push(`/${workspaceSlug}/projects/${project?.id}/settings`)}
|
<Link href={`/${workspaceSlug}/projects/${project?.id}/settings`}>
|
||||||
>
|
<div className="flex items-center justify-start gap-2">
|
||||||
<div className="flex items-center justify-start gap-2">
|
<Settings className="h-3.5 w-3.5 stroke-[1.5]" />
|
||||||
<Settings className="h-3.5 w-3.5 stroke-[1.5]" />
|
<span>Settings</span>
|
||||||
<span>Settings</span>
|
</div>
|
||||||
</div>
|
</Link>
|
||||||
</CustomMenu.MenuItem>
|
</CustomMenu.MenuItem>
|
||||||
|
|
||||||
{/* leave project */}
|
{/* leave project */}
|
||||||
{isViewerOrGuest && (
|
{isViewerOrGuest && (
|
||||||
<CustomMenu.MenuItem onClick={handleLeaveProject}>
|
<CustomMenu.MenuItem onClick={handleLeaveProject}>
|
||||||
|
Loading…
Reference in New Issue
Block a user