fix: changed stop build icon on components (#6817)

Added red square instead of X on stop build button on component

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Lucas Oliveira 2025-02-26 18:18:49 -03:00 committed by GitHub
commit 09c91b8c34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,7 +177,7 @@ export default function NodeStatus({
const iconName =
BuildStatus.BUILDING === buildStatus
? isHovered
? "X"
? "Square"
: "Loader2"
: "Play";
@ -185,7 +185,8 @@ export default function NodeStatus({
const iconClasses = cn(
"play-button-icon",
isHovered ? "text-foreground" : "text-placeholder-foreground",
BuildStatus.BUILDING === buildStatus && !isHovered && "animate-spin",
BuildStatus.BUILDING === buildStatus &&
(isHovered ? "text-status-red" : "animate-spin"),
);
const getTooltipContent = () => {