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>
|
<CardHeader>
|
||||||
<div>
|
<div>
|
||||||
<CardTitle className="flex w-full items-center justify-between gap-3 text-xl">
|
<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(
|
className={cn(
|
||||||
"flex-shrink-0 h-7 w-7 text-flow-icon",
|
"flex-shrink-0 h-7 w-7 text-flow-icon",
|
||||||
)}
|
)}
|
||||||
name="Group"
|
name="Group"
|
||||||
/>
|
/>}
|
||||||
<ShadTooltip content={flow.name}>
|
<ShadTooltip content={flow.name}>
|
||||||
<div className="w-full truncate">{flow.name}</div>
|
<div className="w-full truncate">{flow.name}</div>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@ export type FlowType = {
|
||||||
parent?: string;
|
parent?: string;
|
||||||
folder?: string;
|
folder?: string;
|
||||||
user_id?: string;
|
user_id?: string;
|
||||||
|
icon?:string;
|
||||||
|
icon_bg_color?:string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type NodeType = {
|
export type NodeType = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue