mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: project card enhancement (#4424)
This commit is contained in:
parent
0af55e7bbb
commit
0037377c8f
@ -2,7 +2,7 @@ import React, { useRef, useState } from "react";
|
|||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { ArchiveRestoreIcon, Check, ExternalLink, LinkIcon, Lock, Pencil, Trash2, UserPlus } from "lucide-react";
|
import { ArchiveRestoreIcon, Check, ExternalLink, LinkIcon, Lock, Settings, Trash2, UserPlus } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
import type { IProject } from "@plane/types";
|
import type { IProject } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
@ -105,10 +105,10 @@ export const ProjectCard: React.FC<Props> = observer((props) => {
|
|||||||
|
|
||||||
const MENU_ITEMS: TContextMenuItem[] = [
|
const MENU_ITEMS: TContextMenuItem[] = [
|
||||||
{
|
{
|
||||||
key: "edit",
|
key: "settings",
|
||||||
action: () => router.push(`/${workspaceSlug}/projects/${project.id}/settings`),
|
action: () => router.push(`/${workspaceSlug}/projects/${project.id}/settings`),
|
||||||
title: "Edit",
|
title: "Settings",
|
||||||
icon: Pencil,
|
icon: Settings,
|
||||||
shouldRender: !isArchived && (isOwner || isMember),
|
shouldRender: !isArchived && (isOwner || isMember),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -322,7 +322,7 @@ export const ProjectCard: React.FC<Props> = observer((props) => {
|
|||||||
}}
|
}}
|
||||||
href={`/${workspaceSlug}/projects/${project.id}/settings`}
|
href={`/${workspaceSlug}/projects/${project.id}/settings`}
|
||||||
>
|
>
|
||||||
<Pencil className="h-3.5 w-3.5" />
|
<Settings className="h-3.5 w-3.5" />
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<span className="flex items-center gap-1 text-custom-text-400 text-sm">
|
<span className="flex items-center gap-1 text-custom-text-400 text-sm">
|
||||||
|
Loading…
Reference in New Issue
Block a user