Remove redundant call to getChildContext

The CheckSources component already provedes source to this component
and its children.
pull/10616/head
Andrew Watkins 2017-09-07 11:41:37 -07:00
parent a5c1a83e90
commit 91f2f71d1e
1 changed files with 0 additions and 13 deletions

View File

@ -11,10 +11,6 @@ class DataSection extends Component {
super(props)
}
getChildContext() {
return {source: this.props.source}
}
handleChooseNamespace = namespace => {
this.props.actions.chooseNamespace(this.props.query.id, namespace)
}
@ -111,13 +107,4 @@ DataSection.propTypes = {
isKapacitorRule: PropTypes.bool,
}
DataSection.childContextTypes = {
source: PropTypes.shape({
links: PropTypes.shape({
proxy: PropTypes.string.isRequired,
self: PropTypes.string.isRequired,
}).isRequired,
}).isRequired,
}
export default DataSection