Skip to content

Commit 766e425

Browse files
removed the console.logs from both files, ComponentMap and LinkControls
1 parent f60da99 commit 766e425

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function ComponentMap({
6262
sizeHeight = innerWidth;
6363
}
6464
}
65-
// controls for the map
65+
// render controls for the map
6666
const LinkComponent = getLinkComponent({ layout, linkType, orientation });
6767
return totalWidth < 10 ? null : (
6868
<div>
@@ -144,7 +144,7 @@ export default function ComponentMap({
144144
rx={node.data.children ? 0 : 10}
145145
onClick={() => {
146146
node.data.isExpanded = !node.data.isExpanded;
147-
console.log(node);
147+
148148
forceUpdate();
149149
}}
150150
/>

src/app/components/LinkControls.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

33
const controlStyles = { fontSize: 10 };
4-
4+
// props for orientation controls
55
type Props = {
66
layout: string;
77
orientation: string;
@@ -12,7 +12,7 @@ type Props = {
1212
setLinkType: (linkType: string) => void;
1313
setStepPercent: (percent: number) => void;
1414
};
15-
15+
// below are the control options for each of the drop downs.
1616
export default function LinkControls({
1717
layout,
1818
orientation,
@@ -64,7 +64,7 @@ export default function LinkControls({
6464
onClick={(e) => e.stopPropagation()}
6565
type='range'
6666
min={0}
67-
max={1}
67+
max={5}
6868
step={0.1}
6969
onChange={(e) => setStepPercent(Number(e.target.value))}
7070
value={stepPercent}

0 commit comments

Comments
 (0)