Skip to content

Commit e77a8e0

Browse files
committed
final working commit
1 parent 56f1c3a commit e77a8e0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/app/components/History.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ const filterHooks = (data: any[]) => {
3434
* @method maked3Tree :Creates a new D3 Tree
3535
*/
3636

37-
export default function History(props) {
37+
function History(props) {
3838
let { hierarchy } = props;
39-
console.log('hierarchy is', hierarchy);
4039
let root = JSON.parse(JSON.stringify(hierarchy));
4140
let isRecoil = false;
4241
let HistoryRef = React.createRef(root); //React.createRef(root);
@@ -251,9 +250,12 @@ export default function History(props) {
251250
return [(y = +y) * Math.cos((x -= Math.PI / 2)), y * Math.sin(x)];
252251
}
253252
};
253+
254254
return (
255255
<>
256256
<div ref={HistoryRef} className="history-d3-div" id="historyContainer" />
257257
</>
258258
);
259259
}
260+
261+
export default History;

src/app/components/legend.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ const legendGlyphSize = 12;
99
export default function Legendary(props: any) {
1010
// { events = false }: { events?: boolean }) {
1111

12-
console.log('successfully invoke Legendary function call');
1312
const { hierarchy } = props;
14-
console.log('and hierarchy being passed in is', hierarchy);
1513

1614
const getSnapshotIds = (obj, snapshotIds = []) => {
17-
console.log('obj.name is', obj.name);
1815
snapshotIds.push(`${obj.name}.${obj.branch}`);
1916
if (obj.children) {
2017
obj.children.forEach((child) => {
@@ -25,7 +22,6 @@ export default function Legendary(props: any) {
2522
};
2623

2724
const snap = getSnapshotIds(hierarchy);
28-
console.log('passing hierarchy as an object to getSnapshotIds is -->', snap);
2925

3026
const ordinalColorScale = scaleOrdinal<number, string>({
3127
domain: snap,

0 commit comments

Comments
 (0)