Add flow icon and icon background color to FlowType

This commit is contained in:
anovazzi1 2024-03-06 11:39:25 -03:00
commit bd86d07881
2 changed files with 10 additions and 2 deletions

View file

@ -41,12 +41,18 @@ export default function CollectionCardComponent({
<CardHeader>
<div>
<CardTitle className="flex w-full items-center justify-between gap-3 text-xl">
<IconComponent
{flow.icon && (
<div className="flex-shrink-0 h-7 w-7">
{flow.icon}
</div>
)}
{!flow.icon && <IconComponent
className={cn(
"flex-shrink-0 h-7 w-7 text-flow-icon",
)}
name="Group"
/>
/>}
<ShadTooltip content={flow.name}>
<div className="w-full truncate">{flow.name}</div>
</ShadTooltip>

View file

@ -15,6 +15,8 @@ export type FlowType = {
parent?: string;
folder?: string;
user_id?: string;
icon?:string;
icon_bg_color?:string;
};
export type NodeType = {