Skip to content

Commit 19ff0c7

Browse files
committed
a few more merge items
1 parent a27790c commit 19ff0c7

File tree

3 files changed

+0
-43
lines changed

3 files changed

+0
-43
lines changed

src/app/components/Diff.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
// return newObj; // return the cleaned state snapshot(s)
8181
// };
8282

83-
<<<<<<< HEAD
8483
// const previousDisplay: StatelessCleaning = statelessCleaning(previous); // displays stateful data from the first snapshot that was taken before our current snapshot.
8584

8685
// const delta: StatelessCleaning = diff(previousDisplay, snapshot); // diff function from 'jsondiffpatch' returns the difference in state between 'previousDisplay' and 'snapshot'
@@ -90,24 +89,6 @@
9089
// if (show)
9190
// formatters.html.showUnchanged(); // shows unchanged values if we're on the '/diffRaw' path
9291
// else formatters.html.hideUnchanged(); // hides unchanged values
93-
=======
94-
// console.log('previousDisplay before stateless cleaning: ', previous);
95-
const previousDisplay: StatelessCleaning = statelessCleaning(previous); // displays stateful data from the first snapshot that was taken before our current snapshot.
96-
97-
// console.log('previousDisplay after stateless cleaning: ', previousDisplay);
98-
const delta: StatelessCleaning = diff(previousDisplay, snapshot); // diff function from 'jsondiffpatch' returns the difference in state between 'previousDisplay' and 'snapshot'
99-
100-
// console.log('delta: ', delta);
101-
const html: StatelessCleaning = formatters.html.format(delta, previousDisplay); // formatters function from 'jsondiffpatch' returns an html string that shows the difference between delta and the previousDisplay
102-
103-
// console.log('html: ', html);
104-
105-
console.log(show);
106-
console.log(formatters.html.showUnchanged());
107-
if (show)
108-
formatters.html.showUnchanged(); // shows unchanged values if we're on the '/diffRaw' path
109-
else formatters.html.hideUnchanged(); // hides unchanged values
110-
>>>>>>> errors
11192

11293
// if (previous === undefined || delta === undefined) {
11394
// // if there has been no state changes on the target/hooked application, previous and delta would be undefined.

src/app/components/DiffRoute.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// Loads the appropriate DiffRoute view and renders the 'Tree' and 'Raw' navbar buttons after clicking on the 'Diff' button located near the top rightmost corner.
88
// */
99

10-
<<<<<<< HEAD
1110
// // 'DiffRoute' only passed in prop is 'snapshot' from 'tabs[currentTab]' object in 'MainContainer'
1211
// const DiffRoute = (props: DiffRouteProps): JSX.Element => (
1312
// <Router>
@@ -25,24 +24,5 @@
2524
// </Routes>
2625
// </Router>
2726
// );
28-
=======
29-
// 'DiffRoute' only passed in prop is 'snapshot' from 'tabs[currentTab]' object in 'MainContainer'
30-
const DiffRoute = (props: DiffRouteProps): JSX.Element => (
31-
<Router>
32-
<div className='navbar'>
33-
<NavLink className='router-link' activeClassName='is-active' exact to='/'>
34-
Tree
35-
</NavLink>
36-
<NavLink className='router-link' activeClassName='is-active' to='/diffRaw'>
37-
Raw
38-
</NavLink>
39-
</div>
40-
<Switch>
41-
<Route path='/diffRaw' render={() => <Diff snapshot={props.snapshot} />} />
42-
<Route path='/' render={() => <Diff snapshot={props.snapshot} show={false} />} />
43-
</Switch>
44-
</Router>
45-
);
46-
>>>>>>> errors
4727

4828
// export default DiffRoute;

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,8 @@ export default function ComponentMap({
127127
};
128128

129129
const formatRenderTime: string = (time: number): string => {
130-
<<<<<<< HEAD
131-
const renderTime = parseFloat(time).toFixed(3);
132-
=======
133130
if (!time) return 'No time information';
134131
const renderTime = time.toFixed(3);
135-
>>>>>>> errors
136132
return `${renderTime} ms `;
137133
};
138134

0 commit comments

Comments
 (0)