From 91f2f71d1ee962f666a83db420fabfec777af75d Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Thu, 7 Sep 2017 11:41:37 -0700 Subject: [PATCH] Remove redundant call to getChildContext The CheckSources component already provedes source to this component and its children. --- ui/src/kapacitor/components/DataSection.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ui/src/kapacitor/components/DataSection.js b/ui/src/kapacitor/components/DataSection.js index 776d6429fd..3cf9a5eaae 100644 --- a/ui/src/kapacitor/components/DataSection.js +++ b/ui/src/kapacitor/components/DataSection.js @@ -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