Merge branch 'add_emoji_icon' into dev

This commit is contained in:
cristhianzl 2024-02-08 18:08:24 -03:00
commit 33d05a23f3
6 changed files with 47 additions and 14 deletions

View file

@ -156,14 +156,19 @@ export default function GenericNode({
(!showNode && "justify-center")
}
>
<IconComponent
name={data.node?.flow ? "group_components" : name}
className={
"generic-node-icon " +
(!showNode ? "absolute inset-x-6 h-12 w-12" : "")
}
iconColor={`${nodeColors[types[data.type]]}`}
/>
{data?.node?.icon ? (
<span className="text-lg">{data?.node?.icon}</span>
) : (
<IconComponent
name={data.node?.flow ? "group_components" : name}
className={
"generic-node-icon " +
(!showNode ? "absolute inset-x-6 h-12 w-12" : "")
}
iconColor={`${nodeColors[types[data.type]]}`}
/>
)}
{showNode && (
<div className="generic-node-tooltip-div">
{nameEditable && inputName ? (

View file

@ -17,6 +17,7 @@ export type APIClassType = {
description: string;
template: APITemplateType;
display_name: string;
icon?: string;
input_types?: Array<string>;
output_types?: Array<string>;
custom_fields?: CustomFieldsType;