Formatting code

This commit is contained in:
Cristhian Zanforlin Lousa 2023-06-23 18:08:16 -03:00
commit 3b20a40af8
2 changed files with 10 additions and 5 deletions

View file

@ -104,8 +104,13 @@ export default function GenericNode({
}} }}
/> />
<div className="ml-2 truncate"> <div className="ml-2 truncate">
<ShadTooltip delayDuration={1500} content={data.node.display_name}> <ShadTooltip
<div className="ml-2 truncate text-gray-800">{data.node.display_name}</div> delayDuration={1500}
content={data.node.display_name}
>
<div className="ml-2 truncate text-gray-800">
{data.node.display_name}
</div>
</ShadTooltip> </ShadTooltip>
</div> </div>
</div> </div>

View file

@ -16,8 +16,8 @@ export default function Dropdown({
value === "" || !value ? "Choose an option" : value value === "" || !value ? "Choose an option" : value
); );
useEffect(() => { useEffect(() => {
setInternalValue(value === "" || !value ? "Choose an option" : value) setInternalValue(value === "" || !value ? "Choose an option" : value);
},[value]) }, [value]);
return ( return (
<> <>