@@ -289,6 +289,7 @@ export default function ComponentMap({
289
289
const handleMouseEnter = ( ) => {
290
290
setIsHovered ( true ) ;
291
291
setStrokeColor ( hoverClass ) ;
292
+ // make box
292
293
} ;
293
294
const handleMouseLeave = ( ) => {
294
295
setIsHovered ( false ) ;
@@ -316,18 +317,23 @@ export default function ComponentMap({
316
317
// isHovered ? stroke="ab269b" : stroke; */
317
318
318
319
return (
319
- < LinkComponent
320
- className = 'compMapLink'
321
- key = { i }
322
- data = { link }
323
- percent = { stepPercent }
324
- stroke = { strokeColor } // changing this color on hover
325
- strokeWidth = { strokeWidthIndex } /* strokeWidth */ // width of the link
326
- fill = 'none'
327
- //testing hover functionality
328
- onMouseEnter = { handleMouseEnter }
329
- onMouseLeave = { handleMouseLeave }
330
- />
320
+ < >
321
+ < LinkComponent
322
+ className = 'compMapLink'
323
+ key = { i }
324
+ data = { link }
325
+ percent = { stepPercent }
326
+ stroke = { strokeColor } // changing this color on hover
327
+ strokeWidth = { strokeWidthIndex } /* strokeWidth */ // width of the link
328
+ fill = 'none'
329
+ //testing hover functionality
330
+ onMouseEnter = { handleMouseEnter }
331
+ onMouseLeave = { handleMouseLeave }
332
+ />
333
+ < div className = 'linkHoverInfo' >
334
+ < h2 > Props: </ h2 >
335
+ </ div >
336
+ </ >
331
337
)
332
338
} )
333
339
}
@@ -541,7 +547,7 @@ export default function ComponentMap({
541
547
</ Tree >
542
548
</ Group >
543
549
</ svg >
544
- { tooltipOpen && tooltipData && (
550
+ { tooltipOpen && tooltipData && ( // if the tooltip is open and there is data to display...
545
551
< TooltipInPortal
546
552
// set this to random so it correctly updates with parent bounds
547
553
key = { Math . random ( ) }
@@ -584,6 +590,7 @@ export default function ComponentMap({
584
590
</ div >
585
591
</ TooltipInPortal >
586
592
) }
593
+
587
594
</ div >
588
595
) ;
589
596
}
0 commit comments