mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user