11/* eslint-disable guard-for-in */
22/* eslint-disable no-restricted-syntax */
33// @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- = === ===
94import React , { useState } from 'react' ;
10- > >>> >>> Reactime13 .0
115import {
126 MemoryRouter as Router ,
137 Route ,
148 NavLink ,
159 Switch ,
1610 useLocation ,
1711} 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
2412import RenderingFrequency from './RenderingFrequency' ;
2513import BarGraph from './BarGraph' ;
2614import BarGraphComparison from './BarGraphComparison' ;
2715import BarGraphComparisonActions from './BarGraphComparisonActions' ;
2816import { useStoreContext } from '../store' ;
29- < < << << < HEAD
30- // import snapshots from './snapshots';
31- = === ===
32-
33- >>> >>> > Reactime13.0
3417/* NOTES
3518Issue - Not fully compatible with recoil apps. Reference the recoil-todo-test.
3619Barstacks display inconsistently...however, almost always displays upon initial test app load or
@@ -97,11 +80,6 @@ const collectNodes = (snaps, componentName) => {
9780 }
9881 }
9982 }
100- << << << < HEAD
101- // console.log('componentsResult looks like: ', componentsResult);
102- return componentsResult ;
103- } ;
104- =======
10583
10684 const finalResults = componentsResult . map ( ( e , index ) => {
10785 const name = Object . keys ( e ) [ 0 ] ;
@@ -111,7 +89,6 @@ const collectNodes = (snaps, componentName) => {
11189 return finalResults ;
11290} ;
11391
114- >>> >>> > Reactime13 .0
11592/* DATA HANDLING HELPER FUNCTIONS */
11693const traverse = ( snapshot , data , snapshots , currTotalRender = 0 ) => {
11794 if ( ! snapshot . children [ 0 ] ) return ;
@@ -159,14 +136,7 @@ const traverse = (snapshot, data, snapshots, currTotalRender = 0) => {
159136
160137// Retrieve snapshot series data from Chrome's local storage.
161138const 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- === = ===
168139 let values = localStorage . getItem ( 'project' )
169- >>> > >>> Reactime13 .0
170140 values = values === null ? [ ] : JSON . parse ( values ) ;
171141 return values ;
172142} ;
@@ -201,14 +171,7 @@ const getPerfMetrics = (snapshots, snapshotsIds): {} => {
201171/* EXPORT COMPONENT */
202172const PerformanceVisx = ( props : BarStackProps ) => {
203173 // hook used to dispatch onhover action in rect
204- < < << << < HEAD
205-
206- const {
207- width , height , snapshots , hierarchy ,
208- } = props ;
209- === === =
210174 const { width, height, snapshots, hierarchy, } = props ;
211- >>> > >>> Reactime13 .0
212175 const [ { tabs, currentTab } , dispatch ] = useStoreContext ( ) ;
213176 const [ detailsView , setDetailsView ] = useState ( 'barStack' ) ;
214177 const [ comparisonView , setComparisonView ] = useState ( 'barStack' ) ;
0 commit comments