Skip to content

Commit 3899f5a

Browse files
committed
(modified) Stateroute to invoke History component directly, rather than invoking ZoomFT as parent component
1 parent e6bf22f commit 3899f5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/components/StateRoute.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@ const StateRoute = (props: StateRouteProps) => {
8181
//* we wrap History in a ParentSize div, in order to make use of Visx's Zoom functionality
8282
const renderHistory = () => {
8383
if (hierarchy) {
84+
// console.log(`width is ${width} and height is ${height}`);
8485
return (
8586
<div>
8687
<ParentSize>
8788
{({ width, height }) => (
8889
<History
89-
width={width}
90-
height={height}
90+
width={535}
91+
height={481}
9192
hierarchy={hierarchy}
9293
dispatch={dispatch}
9394
sliderIndex={sliderIndex}

0 commit comments

Comments
 (0)