1
1
/* eslint-disable guard-for-in */
2
2
/* eslint-disable no-restricted-syntax */
3
3
// @ts -nocheck
4
- < < << << < HEAD
5
- import React , { useState , useEffect } from 'react' ;
6
- import FormControlLabel from '@material-ui/core/FormControlLabel' ;
7
- import { ParentSize } from '@visx/responsive' ;
8
- = === ===
9
4
import React , { useState } from 'react' ;
10
- > >>> >>> Reactime13 .0
11
5
import {
12
6
MemoryRouter as Router ,
13
7
Route ,
14
8
NavLink ,
15
9
Switch ,
16
10
useLocation ,
17
11
} from 'react-router-dom' ;
18
- < < << << < HEAD
19
- import { Component } from 'react' ;
20
- import { render } from 'react-dom' ;
21
- import { Component } from 'react' ;
22
- = === ===
23
- >>> >>> > Reactime13 .0
24
12
import RenderingFrequency from './RenderingFrequency' ;
25
13
import BarGraph from './BarGraph' ;
26
14
import BarGraphComparison from './BarGraphComparison' ;
27
15
import BarGraphComparisonActions from './BarGraphComparisonActions' ;
28
16
import { useStoreContext } from '../store' ;
29
- < < << << < HEAD
30
- // import snapshots from './snapshots';
31
- = === ===
32
-
33
- >>> >>> > Reactime13.0
34
17
/* NOTES
35
18
Issue - Not fully compatible with recoil apps. Reference the recoil-todo-test.
36
19
Barstacks display inconsistently...however, almost always displays upon initial test app load or
@@ -97,11 +80,6 @@ const collectNodes = (snaps, componentName) => {
97
80
}
98
81
}
99
82
}
100
- << << << < HEAD
101
- // console.log('componentsResult looks like: ', componentsResult);
102
- return componentsResult ;
103
- } ;
104
- =======
105
83
106
84
const finalResults = componentsResult . map ( ( e , index ) => {
107
85
const name = Object . keys ( e ) [ 0 ] ;
@@ -111,7 +89,6 @@ const collectNodes = (snaps, componentName) => {
111
89
return finalResults ;
112
90
} ;
113
91
114
- >>> >>> > Reactime13 .0
115
92
/* DATA HANDLING HELPER FUNCTIONS */
116
93
const traverse = ( snapshot , data , snapshots , currTotalRender = 0 ) => {
117
94
if ( ! snapshot . children [ 0 ] ) return ;
@@ -159,14 +136,7 @@ const traverse = (snapshot, data, snapshots, currTotalRender = 0) => {
159
136
160
137
// Retrieve snapshot series data from Chrome's local storage.
161
138
const allStorage = ( ) => {
162
- < < << << < HEAD
163
- // const values = [];
164
- // const keys = Object.keys(localStorage);
165
- let values = localStorage . getItem ( 'project' ) ;
166
- // values === null ? values = [] : values = JSON.parse(values) ;
167
- === = ===
168
139
let values = localStorage . getItem ( 'project' )
169
- >>> > >>> Reactime13 .0
170
140
values = values === null ? [ ] : JSON . parse ( values ) ;
171
141
return values ;
172
142
} ;
@@ -201,14 +171,7 @@ const getPerfMetrics = (snapshots, snapshotsIds): {} => {
201
171
/* EXPORT COMPONENT */
202
172
const PerformanceVisx = ( props : BarStackProps ) => {
203
173
// hook used to dispatch onhover action in rect
204
- < < << << < HEAD
205
-
206
- const {
207
- width , height , snapshots , hierarchy ,
208
- } = props ;
209
- === === =
210
174
const { width, height, snapshots, hierarchy, } = props ;
211
- >>> > >>> Reactime13 .0
212
175
const [ { tabs, currentTab } , dispatch ] = useStoreContext ( ) ;
213
176
const [ detailsView , setDetailsView ] = useState ( 'barStack' ) ;
214
177
const [ comparisonView , setComparisonView ] = useState ( 'barStack' ) ;
0 commit comments