Use @vx/responsive to provide Chart width on Explore page (#6104)

* use parent size to compute width

* simplify this.width() and this.height()

* remove unnecessary jquery

* fix indent and import

* adjust headerheight from 100 to 80

* fix test
This commit is contained in:
Krist Wongsuphasawat
2018-10-16 22:18:35 -07:00
committed by Chris Williams
parent bbfd69a138
commit 273991fd4e
5 changed files with 45 additions and 43 deletions

View File

@@ -3,7 +3,7 @@ import React from 'react';
import { shallow, mount } from 'enzyme';
import sinon from 'sinon';
import ParentSize from '@vx/responsive/build/components/ParentSize';
import { ParentSize } from '@vx/responsive';
import { Sticky, StickyContainer } from 'react-sticky';
import { TabContainer, TabContent, TabPane } from 'react-bootstrap';