Skip to content

Commit 8fc1700

Browse files
committed
removed console logs
1 parent 429cf9d commit 8fc1700

File tree

5 files changed

+17
-37
lines changed

5 files changed

+17
-37
lines changed

src/app/components/AtomsRelationship.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ import { Chart } from 'react-google-charts';
88
*/
99

1010
function AtomsRelationship(props) {
11-
console.log('Props', props.atomsRel);
1211

1312
const {atomsRel} = props
1413

15-
1614
return (
1715
<div className="history-d3-container" id="atomsContainer">
1816
{atomsRel && (

src/app/components/History.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ function History(props) {
140140
tooltipDiv.transition().duration(50).style('opacity', 0.9);
141141

142142
if (d.data.stateSnapshot.children[0].name === 'RecoilRoot') {
143-
console.log('enter');
144143
isRecoil = true;
145144
}
146145
if (!isRecoil) {

src/app/components/PerfView.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,11 @@ const PerfView = (props: PerfViewProps) => {
3535
let { snapshots } = props;
3636
const adjustedSize = Math.min(width, height);
3737
const svgRef = useRef(null);
38-
39-
//NEEDS REWRITE FOR RECOIL
40-
// snapshots.forEach((snapshot) => snapshot.children[0].children.shift());
41-
// console.log('SNAPSHOTS -------------------------->', snapshots);
42-
// Figure out which snapshot index to use
4338

4439
let indexToDisplay: number | null = null;
4540
if (viewIndex < 0) indexToDisplay = snapshots.length - 1;
4641
else indexToDisplay = viewIndex;
4742

48-
//console.log('SNAPSHOTS IN PERF VIEW', snapshots);
49-
//console.log('VIEW INDEX', indexToDisplay);
50-
5143
// Set up color scaling function
5244
const colorScale = d3
5345
.scaleOrdinal()

src/app/components/StateRoute.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ interface StateRouteProps {
3939

4040
const StateRoute = (props: StateRouteProps) => {
4141
const { snapshot, hierarchy, snapshots, viewIndex } = props;
42-
// let isRecoil = true;
43-
// console.log('snapshot', snapshot)
44-
// console.log(snapshot.AtomsRelationship)
42+
4543
let isRecoil = snapshot.AtomsRelationship ? true : false;
4644
const [noRenderData, setNoRenderData] = useState(false);
4745

src/app/components/Tree.tsx

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,7 @@
66
import React from 'react';
77
import JSONTree from 'react-json-tree';
88

9-
10-
11-
12-
13-
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
24-
25-
const colors = {
9+
const colors = {
2610
scheme: 'paraiso',
2711
author: 'jan t. sott',
2812
base00: '#2f1e2e',
@@ -40,21 +24,30 @@ const colors = {
4024
base0C: '#5bc4bf',
4125
base0D: '#06b6ef',
4226
base0E: '#815ba4',
43-
base0F: '#e96ba8'
27+
base0F: '#e96ba8',
4428
};
4529

46-
const getItemString = (type, data:{state?:object|string, name:string, children:[]}) => {
30+
const getItemString = (
31+
type,
32+
data: { state?: object | string; name: string; children: [] }
33+
) => {
4734
if (data && data.name) {
4835
return <span>{data.name}</span>;
4936
}
5037
return <span />;
5138
};
5239

5340
interface TreeProps {
54-
snapshot: { name?: string; componentData?: object; state?: string | object; stateSnaphot?: object; children?: any[]; };
41+
snapshot: {
42+
name?: string;
43+
componentData?: object;
44+
state?: string | object;
45+
stateSnaphot?: object;
46+
children?: any[];
47+
};
5548
}
5649

57-
const Tree = (props:TreeProps) => {
50+
const Tree = (props: TreeProps) => {
5851
const { snapshot } = props;
5952

6053
return (
@@ -65,8 +58,8 @@ const Tree = (props:TreeProps) => {
6558
theme={{ extend: colors, tree: () => ({ className: 'json-tree' }) }}
6659
shouldExpandNode={() => true}
6760
getItemString={getItemString}
68-
labelRenderer={(raw:any[]) => {
69-
return (typeof raw[0] !== 'number' ? <span>{raw[0]}</span> : null);
61+
labelRenderer={(raw: any[]) => {
62+
return typeof raw[0] !== 'number' ? <span>{raw[0]}</span> : null;
7063
}}
7164
/>
7265
)}

0 commit comments

Comments
 (0)