add isEmoji
This commit is contained in:
parent
3e341b5745
commit
865f147c2a
1 changed files with 12 additions and 1 deletions
|
|
@ -160,7 +160,18 @@ export default function GenericNode({
|
|||
}
|
||||
>
|
||||
{data?.node?.icon ? (
|
||||
<span className="text-lg">{data?.node?.icon}</span>
|
||||
isEmoji ? (
|
||||
<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]]}`}
|
||||
/>
|
||||
)
|
||||
) : (
|
||||
<IconComponent
|
||||
name={data.node?.flow ? "group_components" : name}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue