Fix console spam about prop being placed on div

pull/1870/head
Andrew Watkins 2017-08-14 15:20:21 -07:00
parent 7da02d52d7
commit 766a3b0273
1 changed files with 12 additions and 3 deletions

View File

@ -233,7 +233,7 @@ class CellEditorOverlay extends Component {
axes={axes}
views={[]}
/>
<div className="overlay-technology--editor">
<CEOBottom>
<OverlayControls
isDisplayOptionsTabActive={isDisplayOptionsTabActive}
onClickDisplayOptions={this.handleClickDisplayOptionsTab}
@ -260,14 +260,19 @@ class CellEditorOverlay extends Component {
onDeleteQuery={this.handleDeleteQuery}
activeQueryIndex={activeQueryIndex}
/>}
</div>
</CEOBottom>
</ResizeContainer>
</div>
)
}
}
const {arrayOf, func, number, shape, string} = PropTypes
const CEOBottom = ({children}) =>
<div className="overlay-technology--editor">
{children}
</div>
const {arrayOf, func, node, number, shape, string} = PropTypes
CellEditorOverlay.propTypes = {
onCancel: func.isRequired,
@ -297,4 +302,8 @@ CellEditorOverlay.propTypes = {
dashboardID: string.isRequired,
}
CEOBottom.propTypes = {
children: node,
}
export default CellEditorOverlay