Skip to content

Commit 4291c22

Browse files
committed
(modified) Renamed Example functino to AtomsRelationship in AtomsRelationship component
1 parent 1c1ef37 commit 4291c22

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/app/components/AtomsRelationship.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const defaultMargin = { top: 40, left: 0, right: 0, bottom: 40 };
241241
// margin?: { top: number; right: number; bottom: number; left: number };
242242
// };
243243

244-
export default function Example({
244+
export default function AtomsRelationship({
245245
width,
246246
height,
247247
margin = defaultMargin,

src/app/components/StateRoute.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ import Tree from './Tree';
1515
import ComponentMap from './ComponentMap';
1616
import PerformanceVisx from './PerformanceVisx';
1717
import Legend from './AtomsRelationshipLegend'
18-
import Example from './AtomsRelationship';
18+
// import Example from './AtomsRelationship';
1919
import { ParentSize } from '@visx/responsive';
2020
import Legendary from './legend';
21+
// import atomsRelationship from './AtomsRelationship';
22+
import AtomsRelationship from './AtomsRelationship'
2123

2224
const History = require('./History').default;
2325

@@ -60,7 +62,10 @@ const StateRoute = (props: StateRouteProps) => {
6062
return (
6163
<ParentSize>
6264
{({ width, height }) => (
63-
<ComponentMap snapshots={snapshots} width={width} height={height} />
65+
<ComponentMap
66+
snapshots={snapshots}
67+
width={width}
68+
height={height} />
6469
)}
6570
</ParentSize>
6671
);
@@ -90,13 +95,12 @@ const StateRoute = (props: StateRouteProps) => {
9095
const renderAtomsRelationship = () => (
9196
<ParentSize>{({ width, height }) =>
9297
<>
93-
{/* <Legend /> */}
94-
<Example
98+
<AtomsRelationship
9599
width={width}
96100
height={height}
97101
snapshots={snapshots} />
98102
</>
99-
</ParentSize>
103+
}</ParentSize>
100104
);
101105

102106
// the hierarchy gets set on the first click in the page

0 commit comments

Comments
 (0)