fix: project page link error fix (#2494)

This commit is contained in:
Anmol Singh Bhatia 2023-10-19 18:09:25 +05:30 committed by GitHub
parent 5f014d204c
commit 1b8f6e2129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,11 +184,12 @@ export const ProjectCard: React.FC<ProjectCardProps> = observer((props) => {
)} )}
</Tooltip> </Tooltip>
{(isOwner || isMember) && ( {(isOwner || isMember) && (
<Link href={`/${workspaceSlug}/projects/${project.id}/settings`}> <button
<a className="flex items-center justify-center p-1 text-custom-text-400 hover:bg-custom-background-80 hover:text-custom-text-200 rounded"> className="flex items-center justify-center p-1 text-custom-text-400 hover:bg-custom-background-80 hover:text-custom-text-200 rounded"
onClick={() => router.push(`/${workspaceSlug}/projects/${project.id}/settings`)}
>
<Pencil className="h-3.5 w-3.5" /> <Pencil className="h-3.5 w-3.5" />
</a> </button>
</Link>
)} )}
{!project.is_member ? ( {!project.is_member ? (