diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Graph/Nodes/Node/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Graph/Nodes/Node/index.tsx index 276ee661e..5c01f47a5 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/Graph/Nodes/Node/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/Graph/Nodes/Node/index.tsx @@ -9,6 +9,7 @@ import { fontProps } from '~/components/Universe/Graph/Cubes/Text/constants' import { useSchemaStore } from '~/stores/useSchemaStore' import { truncateText } from '~/utils/truncateText' import { NODE_RADIUS } from '../../constants' +import { useAppStore } from '~/stores/useAppStore' export const NODE_TYPE_COLORS = ['#ff13c9', '#5af0ff', '#3233ff', '#c2f0c2', '#ff6666', '#99ccff', '#ffb3b3'] @@ -42,6 +43,7 @@ export const boxGeometry = new BoxGeometry(2, 2, 2) export const Node = memo(({ node, setSelectedNode, onSimulationUpdate, isSelected }: Props) => { const meshRef = useRef(null) const [normalizedSchemasByType] = useSchemaStore((s) => [s.normalizedSchemasByType]) + const { setSelectedColor } = useAppStore((s) => s) const [showTooltip, setShowTooltip] = useState(false) console.log(isSelected) @@ -124,7 +126,7 @@ export const Node = memo(({ node, setSelectedNode, onSimulationUpdate, isSelecte onPointerOver={handleMouseOver} position={new Vector3(node.x, node.y, 0)} > - + setSelectedColor(color)}>