Add flow icon and icon background color to FlowType
This commit is contained in:
parent
2a3dc80304
commit
bd86d07881
2 changed files with 10 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ export type FlowType = {
|
|||
parent?: string;
|
||||
folder?: string;
|
||||
user_id?: string;
|
||||
icon?:string;
|
||||
icon_bg_color?:string;
|
||||
};
|
||||
|
||||
export type NodeType = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue