mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-26 17:02:19 +08:00
fix: use cn utility for className assignment (#5032)
📝 (NodeName/index.tsx): refactor className logic to use cn() function for better readability and maintainability
This commit is contained in:
committed by
GitHub
parent
5407cad728
commit
41d3fbcc2a
@ -76,11 +76,10 @@ export default function NodeName({
|
||||
event.preventDefault();
|
||||
}}
|
||||
data-testid={"title-" + display_name}
|
||||
className={
|
||||
showNode
|
||||
? "nodoubleclick w-full cursor-text truncate font-medium text-primary"
|
||||
: "cursor-default"
|
||||
}
|
||||
className={cn(
|
||||
"nodoubleclick w-full truncate font-medium text-primary",
|
||||
showNode ? "cursor-text" : "cursor-default",
|
||||
)}
|
||||
>
|
||||
<div className="flex items-center gap-2">
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user