Remove unused props and proptypes

pull/10616/head
Andrew Watkins 2017-08-11 14:45:31 -07:00
parent 380b4bbea9
commit 686f1d79b1
3 changed files with 1 additions and 9 deletions

View File

@ -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

View File

@ -37,7 +37,6 @@ const QueryMaker = ({
<QueryEditor
query={buildText(activeQuery, timeRange)}
config={activeQuery}
isInDataExplorer={true}
onUpdate={rawTextBinder(
source.links,
activeQuery.id,

View File

@ -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}