Remove unused props and proptypes
parent
380b4bbea9
commit
686f1d79b1
|
@ -87,18 +87,12 @@ class QueryEditor extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
const {arrayOf, bool, func, shape, string} = PropTypes
|
||||
const {func, shape, string} = PropTypes
|
||||
|
||||
QueryEditor.propTypes = {
|
||||
query: string.isRequired,
|
||||
onUpdate: func.isRequired,
|
||||
config: shape().isRequired,
|
||||
isInDataExplorer: bool,
|
||||
templates: arrayOf(
|
||||
shape({
|
||||
tempVar: string.isRequired,
|
||||
})
|
||||
),
|
||||
}
|
||||
|
||||
export default QueryEditor
|
||||
|
|
|
@ -37,7 +37,6 @@ const QueryMaker = ({
|
|||
<QueryEditor
|
||||
query={buildText(activeQuery, timeRange)}
|
||||
config={activeQuery}
|
||||
isInDataExplorer={true}
|
||||
onUpdate={rawTextBinder(
|
||||
source.links,
|
||||
activeQuery.id,
|
||||
|
|
|
@ -109,7 +109,6 @@ class DataExplorer extends Component {
|
|||
actions={queryConfigActions}
|
||||
autoRefresh={autoRefresh}
|
||||
timeRange={timeRange}
|
||||
isInDataExplorer={true}
|
||||
setActiveQueryIndex={::this.handleSetActiveQueryIndex}
|
||||
onDeleteQuery={::this.handleDeleteQuery}
|
||||
onAddQuery={::this.handleAddQuery}
|
||||
|
|
Loading…
Reference in New Issue