fix: work item property icon renderer (#8363)
This commit is contained in:
parent
617c7ab734
commit
b7621c62eb
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ import type { ReactNode } from "react";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
||||||
type TSidebarPropertyListItemProps = {
|
type TSidebarPropertyListItemProps = {
|
||||||
icon: React.FC<{ className?: string }> | React.ReactNode;
|
icon: React.FC<{ className?: string }>;
|
||||||
label: string;
|
label: string;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
appendElement?: ReactNode;
|
appendElement?: ReactNode;
|
||||||
|
|
@ -15,7 +15,7 @@ export function SidebarPropertyListItem(props: TSidebarPropertyListItemProps) {
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<div className="flex shrink-0 items-center gap-1.5 w-30 text-body-xs-regular text-tertiary h-7.5">
|
<div className="flex shrink-0 items-center gap-1.5 w-30 text-body-xs-regular text-tertiary h-7.5">
|
||||||
{typeof Icon === "function" ? <Icon className="size-4 shrink-0" /> : Icon}
|
<Icon className="size-4 shrink-0" />
|
||||||
<span>{label}</span>
|
<span>{label}</span>
|
||||||
{appendElement}
|
{appendElement}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue