Skip to content

Commit 7eab84b

Browse files
committed
Co-authored-by: Jesse Rosengrant <[email protected]>
2 parents 7a522e8 + a08c1f6 commit 7eab84b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/app/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { MemoryRouter as Router } from 'react-router-dom';
2+
import { MemoryRouter as Router } from 'react-router-dom';
33
import MainContainer from '../containers/MainContainer';
44
import { ThemeProvider } from '@mui/material/styles';
55
import theme from './theme';

src/app/components/DiffRoute.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
// const DiffRoute = (props: DiffRouteProps): JSX.Element => (
1212
// <Router>
1313
// <div className='navbar'>
14-
// <NavLink className='router-link' activeClassName='is-active' exact to='/'>
14+
// <NavLink className='router-link' activeClassName='is-active' to='/'>
1515
// Tree
1616
// </NavLink>
1717
// <NavLink className='router-link' activeClassName='is-active' to='/diffRaw'>
1818
// Raw
1919
// </NavLink>
2020
// </div>
21-
// <Switch>
21+
// <Routes>
2222
// <Route path='/diffRaw' render={() => <Diff snapshot={props.snapshot} show />} />
2323
// <Route path='/' render={() => <Diff snapshot={props.snapshot} show={false} />} />
24-
// </Switch>
24+
// </Routes>
2525
// </Router>
2626
// );
2727

src/app/components/StateRoute/History.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import React, { useEffect } from 'react';
66
import { diff } from 'jsondiffpatch';
77
const jsondiffpatch = require('jsondiffpatch');
88
// import * as jsondiffpatch from 'jsondiffpatch';
9-
// import { diff } from 'jsondiffpatch';
10-
// import formatters from 'jsondiffpatch/src/formatters';
9+
import { diff } from 'jsondiffpatch';
10+
// import jsondiffpatch from 'jsondiffpatch/formatters';
11+
const jsondiffpatch = require('jsondiffpatch');
1112
import * as d3 from 'd3';
1213
import { DefaultMargin } from '../../FrontendTypes';
1314
import { useDispatch } from 'react-redux';
@@ -158,7 +159,6 @@ function History(props: Record<string, unknown>): JSX.Element {
158159
statelessCleaning(snapshots[index - 1]),
159160
statelessCleaning(snapshots[index]),
160161
);
161-
162162
const changedState = findStateChangeObj(delta); // determines if delta had any stateful changes
163163
const html = jsondiffpatch.formatters.format(changedState[0]); // formats the difference into html string
164164
return html; // return html string

src/app/containers/StateContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const StateContainer = (props: StateContainerProps): JSX.Element => {
4848
/>
4949
{/* )}
5050
/>
51-
</Switch> */}
51+
</Routes> */}
5252
</div>
5353
// </Router>
5454
);

0 commit comments

Comments
 (0)