mirror of
https://github.com/makeplane/plane.git
synced 2025-12-29 00:24:56 +01:00
[WEB-1613] chore: add project logo for active cycles. (#425)
This commit is contained in:
@@ -2,7 +2,7 @@ import { FC } from "react";
|
||||
// types
|
||||
import { IProject } from "@plane/types";
|
||||
// helpers
|
||||
import { renderEmoji } from "@/helpers/emoji.helper";
|
||||
import { Logo } from "@/components/common";
|
||||
|
||||
export type ActiveCyclesProjectTitleProps = {
|
||||
project: Partial<IProject> | undefined;
|
||||
@@ -12,17 +12,14 @@ export const ActiveCyclesProjectTitle: FC<ActiveCyclesProjectTitleProps> = (prop
|
||||
const { project } = props;
|
||||
return (
|
||||
<div className="flex items-center gap-1.5">
|
||||
{project?.emoji ? (
|
||||
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded uppercase">
|
||||
{renderEmoji(project.emoji)}
|
||||
</span>
|
||||
) : project?.icon_prop ? (
|
||||
<div className="grid h-7 w-7 flex-shrink-0 place-items-center">{renderEmoji(project?.icon_prop)}</div>
|
||||
{project?.logo_props ? (
|
||||
<Logo logo={project.logo_props} size={22} />
|
||||
) : (
|
||||
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded bg-gray-700 uppercase text-white">
|
||||
{project?.name?.charAt(0)}
|
||||
</span>
|
||||
)}
|
||||
{/* <Logo */}
|
||||
<h2 className="text-xl font-semibold">{project?.name}</h2>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user