File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import ComponentMap from './ComponentMap';
1717// import PerfView from './PerfView';
1818import AtomsRelationship from './AtomsRelationship.jsx' ;
1919import PerformanceVisx from './PerformanceVisx' ;
20+ import ZoomI from './zoomFt' ;
2021
2122import { changeView , changeSlider } from '../actions/actions' ;
2223import { useStoreContext } from '../store' ;
@@ -76,21 +77,23 @@ const StateRoute = (props: StateRouteProps) => {
7677 // the hierarchy gets set on the first click in the page
7778 // when the page is refreshed we may not have a hierarchy, so we need to check if hierarchy was initialized
7879 // if true involk render chart with hierarchy
79- //* we wrap History in a ParentSize div, in order to make use of Visx's Zoom funcationality
80+ //* we wrap History in a ParentSize div, in order to make use of Visx's Zoom functionality
8081 const renderHistory = ( ) => {
8182 if ( hierarchy ) {
8283 return (
8384 < div >
8485 < ParentSize >
8586 { ( { width, height } ) => (
86- < History
87- width = { width }
88- height = { height }
89- hierarchy = { hierarchy }
90- dispatch = { dispatch }
91- sliderIndex = { sliderIndex }
92- viewIndex = { viewIndex }
93- />
87+ < ZoomI >
88+ < History
89+ width = { width }
90+ height = { height }
91+ hierarchy = { hierarchy }
92+ dispatch = { dispatch }
93+ sliderIndex = { sliderIndex }
94+ viewIndex = { viewIndex }
95+ />
96+ </ ZoomI >
9497 ) }
9598 </ ParentSize >
9699 </ div >
You can’t perform that action at this time.
0 commit comments