chore: project card enhancement (#4424)

This commit is contained in:
Anmol Singh Bhatia 2024-05-10 15:22:01 +05:30 committed by GitHub
parent 0af55e7bbb
commit 0037377c8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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">