File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const background = '#306c90';
15
15
// interface NodeShape {
16
16
// name: string;
17
17
// children?: NodeShape[];
18
- // }
18
+ //
19
19
20
20
const clusterData = {
21
21
name : '$' ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import ComponentMap from './ComponentMap';
16
16
import PerfView from './PerfView' ;
17
17
import AtomsRelationship from './AtomsRelationship.jsx' ;
18
18
import Example from './AtomsRelationship.jsx' ;
19
- import ParentSize from '@visx/responsive' ;
19
+ import { ParentSize } from '@visx/responsive'
20
20
21
21
const History = require ( './History' ) . default ;
22
22
@@ -83,9 +83,12 @@ const StateRoute = (props: StateRouteProps) => {
83
83
} ;
84
84
85
85
const renderAtomsRelationship = ( ) => (
86
- < Example
87
- width = { 500 }
88
- height = { 500 } />
86
+
87
+ < ParentSize > { ( { width, height } ) =>
88
+ < Example
89
+ width = { width }
90
+ height = { height } /> }
91
+ </ ParentSize >
89
92
90
93
// atomsComponents={snapshot.atomsComponents}
91
94
// atomSelectors={snapshot.atomSelectors}
You can’t perform that action at this time.
0 commit comments