[explore-v2] hook up ExploreViewContainer to state and add specs (#1300)

* add getParams func to common

* get data from redux state

* specs for chart container and explore view container
This commit is contained in:
Alanna Scott
2016-10-10 13:46:00 -07:00
committed by GitHub
parent f8e2ce6ff3
commit fe66557bbb
7 changed files with 118 additions and 50 deletions

View File

@@ -1,14 +1,8 @@
import React, { PropTypes } from 'react';
import React from 'react';
import ChartContainer from './ChartContainer';
import ControlPanelsContainer from './ControlPanelsContainer';
import QueryAndSaveButtons from './QueryAndSaveButtons';
const propTypes = {
data: PropTypes.shape({
viz: PropTypes.object.isRequired,
}).isRequired,
};
export default class ExploreViewContainer extends React.Component {
constructor(props) {
super(props);
@@ -42,7 +36,6 @@ export default class ExploreViewContainer extends React.Component {
</div>
<div className="col-sm-8">
<ChartContainer
viz={this.props.data.viz}
height={this.state.height}
/>
</div>
@@ -51,5 +44,3 @@ export default class ExploreViewContainer extends React.Component {
);
}
}
ExploreViewContainer.propTypes = propTypes;