mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Theme: Deprecate selectThemeVariant util function (#28223)
This commit is contained in:
parent
597aeff493
commit
558ce5fd7f
@ -2,6 +2,9 @@ import { GrafanaThemeType } from '@grafana/data';
|
|||||||
|
|
||||||
type VariantDescriptor = { [key in GrafanaThemeType]: string | number };
|
type VariantDescriptor = { [key in GrafanaThemeType]: string | number };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated use theme.isLight ? or theme.isDark instead
|
||||||
|
*/
|
||||||
export const selectThemeVariant = (variants: VariantDescriptor, currentTheme?: GrafanaThemeType) => {
|
export const selectThemeVariant = (variants: VariantDescriptor, currentTheme?: GrafanaThemeType) => {
|
||||||
return variants[currentTheme || GrafanaThemeType.Dark];
|
return variants[currentTheme || GrafanaThemeType.Dark];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user