Thresholds: get theme from context automatically (#22025)

* get theme from context for thresholds

* remove theme

* use theme context

* remove theme from gauge/bargauge
This commit is contained in:
Ryan McKinley
2020-02-08 13:59:26 +01:00
committed by GitHub
parent e17b76ad7a
commit e7710f0c66
5 changed files with 33 additions and 36 deletions

View File

@@ -127,7 +127,6 @@ export class BarGaugePanelEditor extends PureComponent<PanelEditorProps<BarGauge
<ThresholdsEditor
onChange={this.onThresholdsChanged}
thresholds={defaults.thresholds}
theme={config.theme}
showAlphaUI={config.featureToggles.newEdit}
/>
</PanelOptionsGrid>

View File

@@ -133,7 +133,6 @@ export class GaugePanelEditor extends PureComponent<PanelEditorProps<GaugeOption
<ThresholdsEditor
onChange={this.onThresholdsChanged}
thresholds={defaults.thresholds}
theme={config.theme}
showAlphaUI={config.featureToggles.newEdit}
/>
</PanelOptionsGrid>

View File

@@ -140,7 +140,6 @@ export class StatPanelEditor extends PureComponent<PanelEditorProps<StatPanelOpt
<ThresholdsEditor
onChange={this.onThresholdsChanged}
thresholds={defaults.thresholds}
theme={config.theme}
showAlphaUI={config.featureToggles.newEdit}
/>
</PanelOptionsGrid>