feat: add node hover stroke color

This commit is contained in:
AykutSarac 2025-01-23 00:27:22 +03:00
parent 4a604ca70e
commit d2896c5ec1
No known key found for this signature in database

View File

@ -41,6 +41,12 @@ const CustomNodeWrapper = (nodeProps: NodeProps<NodeData["data"]>) => {
onClick={handleNodeClick as any}
animated={false}
label={null as any}
onEnter={ev => {
ev.currentTarget.style.stroke = "#3B82F6";
}}
onLeave={ev => {
ev.currentTarget.style.stroke = colorScheme === "dark" ? "#424242" : "#BCBEC0";
}}
style={{
fill: colorScheme === "dark" ? "#292929" : "#ffffff",
stroke: colorScheme === "dark" ? "#424242" : "#BCBEC0",