Remove redundant call to getChildContext
The CheckSources component already provedes source to this component and its children.pull/10616/head
parent
a5c1a83e90
commit
91f2f71d1e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue