mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
chore: remove some of the deprecated theme.colors.* (#34056)
This commit is contained in:
committed by
GitHub
parent
d6ed819fe2
commit
5d6a979cd0
@@ -114,15 +114,15 @@ const SqlEditorTabHeader: FC<Props> = ({ queryEditor }) => {
|
||||
}
|
||||
const getStatusColor = (state: QueryState, theme: SupersetTheme): string => {
|
||||
const statusColors: Record<QueryState, string> = {
|
||||
[QueryState.Running]: theme.colors.info.base,
|
||||
[QueryState.Success]: theme.colors.success.base,
|
||||
[QueryState.Failed]: theme.colors.error.base,
|
||||
[QueryState.Started]: theme.colors.primary.base,
|
||||
[QueryState.Stopped]: theme.colors.warning.base,
|
||||
[QueryState.Pending]: theme.colors.grayscale.light1,
|
||||
[QueryState.Scheduled]: theme.colors.grayscale.light2,
|
||||
[QueryState.Running]: theme.colorInfo,
|
||||
[QueryState.Success]: theme.colorSuccess,
|
||||
[QueryState.Failed]: theme.colorError,
|
||||
[QueryState.Started]: theme.colorPrimary,
|
||||
[QueryState.Stopped]: theme.colorWarning,
|
||||
[QueryState.Pending]: theme.colorIcon,
|
||||
[QueryState.Scheduled]: theme.colorIcon,
|
||||
[QueryState.Fetching]: theme.colorWarning,
|
||||
[QueryState.TimedOut]: theme.colors.error.dark1,
|
||||
[QueryState.TimedOut]: theme.colorError,
|
||||
};
|
||||
|
||||
return statusColors[state] || theme.colors.grayscale.light2;
|
||||
|
||||
Reference in New Issue
Block a user