mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
[sql-lab] fix react warnings in dev (#1232)
* rename file to match class * fix react warnings * fix proptype typo * add missing keys
This commit is contained in:
@@ -100,6 +100,7 @@ class TabbedSqlEditors extends React.Component {
|
||||
<DropdownButton
|
||||
bsSize="small"
|
||||
id={'ddbtn-tab-' + i}
|
||||
title=""
|
||||
>
|
||||
<MenuItem eventKey="1" onClick={this.props.actions.removeQueryEditor.bind(this, qe)}>
|
||||
<i className="fa fa-close" /> close tab
|
||||
@@ -118,6 +119,7 @@ class TabbedSqlEditors extends React.Component {
|
||||
key={qe.id}
|
||||
title={tabTitle}
|
||||
eventKey={qe.id}
|
||||
id={`a11y-query-editor-${qe.id}`}
|
||||
>
|
||||
<div className="panel panel-default">
|
||||
<div className="panel-body">
|
||||
@@ -135,6 +137,7 @@ class TabbedSqlEditors extends React.Component {
|
||||
bsStyle="tabs"
|
||||
activeKey={this.props.tabHistory[this.props.tabHistory.length - 1]}
|
||||
onSelect={this.handleSelect.bind(this)}
|
||||
id="a11y-query-editor-tabs"
|
||||
>
|
||||
{editors}
|
||||
<Tab title={<div><i className="fa fa-plus-circle" /> </div>} eventKey="add_tab" />
|
||||
|
||||
Reference in New Issue
Block a user