mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user