add emoji icon
This commit is contained in:
parent
d8522f8236
commit
b9570b9c32
1 changed files with 13 additions and 8 deletions
|
|
@ -156,6 +156,9 @@ export default function GenericNode({
|
||||||
(!showNode && "justify-center")
|
(!showNode && "justify-center")
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
{data?.node?.icon ? (
|
||||||
|
<span className="text-lg">{data?.node?.icon}</span>
|
||||||
|
) : (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name={data.node?.flow ? "group_components" : name}
|
name={data.node?.flow ? "group_components" : name}
|
||||||
className={
|
className={
|
||||||
|
|
@ -164,6 +167,8 @@ export default function GenericNode({
|
||||||
}
|
}
|
||||||
iconColor={`${nodeColors[types[data.type]]}`}
|
iconColor={`${nodeColors[types[data.type]]}`}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
{showNode && (
|
{showNode && (
|
||||||
<div className="generic-node-tooltip-div">
|
<div className="generic-node-tooltip-div">
|
||||||
{nameEditable && inputName ? (
|
{nameEditable && inputName ? (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue