mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
refactor: consolidating ColorSchemeEnum settings into one place (#37591)
This commit is contained in:
@@ -25,10 +25,12 @@ import {
|
||||
} from '@superset-ui/core';
|
||||
import { css, styled, useTheme } from '@apache-superset/core/ui';
|
||||
import { Tooltip } from '@superset-ui/core/components';
|
||||
import { DEFAULT_DATE_PATTERN } from '@superset-ui/chart-controls';
|
||||
import {
|
||||
DEFAULT_DATE_PATTERN,
|
||||
ColorSchemeEnum,
|
||||
} from '@superset-ui/chart-controls';
|
||||
import { isEmpty } from 'lodash';
|
||||
import {
|
||||
ColorSchemeEnum,
|
||||
PopKPIComparisonSymbolStyleProps,
|
||||
PopKPIComparisonValueStyleProps,
|
||||
PopKPIProps,
|
||||
|
||||
@@ -23,6 +23,7 @@ import {
|
||||
getStandardizedControls,
|
||||
sharedControls,
|
||||
sections,
|
||||
ColorSchemeEnum,
|
||||
} from '@superset-ui/chart-controls';
|
||||
import { noop } from 'lodash';
|
||||
import {
|
||||
@@ -33,7 +34,6 @@ import {
|
||||
showMetricNameControl,
|
||||
metricNameFontSizeWithVisibility,
|
||||
} from '../sharedControls';
|
||||
import { ColorSchemeEnum } from './types';
|
||||
|
||||
const config: ControlPanelConfig = {
|
||||
controlPanelSections: [
|
||||
|
||||
@@ -79,8 +79,3 @@ export type PopKPIProps = PopKPIStylesProps &
|
||||
dashboardTimeRange?: string;
|
||||
columnConfig?: Record<string, TableColumnConfig>;
|
||||
};
|
||||
|
||||
export enum ColorSchemeEnum {
|
||||
Green = 'Green',
|
||||
Red = 'Red',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user