Commit 558ce5fd by Torkel Ödegaard Committed by GitHub

Theme: Deprecate selectThemeVariant util function (#28223)

parent 597aeff4
......@@ -2,6 +2,9 @@ import { GrafanaThemeType } from '@grafana/data';
type VariantDescriptor = { [key in GrafanaThemeType]: string | number };
/**
* @deprecated use theme.isLight ? or theme.isDark instead
*/
export const selectThemeVariant = (variants: VariantDescriptor, currentTheme?: GrafanaThemeType) => {
return variants[currentTheme || GrafanaThemeType.Dark];
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment