Skip to content

Commit 9f18f2f

Browse files
(add)(remove) added import of onHover from actions at the top, imported useStoreContext at the top, cleaned file of console.logs
1 parent 518c1b9 commit 9f18f2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ const ComponentMap = (props: componentMapProps) => {
2424
let lastSnap: number | null = null;
2525
if (viewIndex < 0) lastSnap = snapshots.length - 1;
2626
else lastSnap = viewIndex;
27-
console.log('inside ComnponentMap, snapshots:', snapshots)
28-
console.log('lastSnap:', lastSnap)
2927
//external constants
3028
const width: any = '100vw';
3129
const height: any = '100vh';
3230
let data: Object = snapshots[lastSnap];
33-
console.log('INSIDE OF COMPONENTMAP, data:', data);
31+
3432
useEffect(() => {
3533
document.getElementById('canvas').innerHTML = '_';
3634
setZoomState(d3.zoomTransform(d3.select('#canvas').node()));
@@ -149,7 +147,7 @@ const ComponentMap = (props: componentMapProps) => {
149147

150148
//TODO -> Alter incoming snapshots so there is useful data to show on hover.
151149
nodeEnter.on('mouseover', function (d: any, i: number): any {
152-
console.log('mousing over')
150+
//onHover is an action in progress
153151
dispatch(onHover());
154152
d3.select(this)
155153
.append('text')

0 commit comments

Comments
 (0)