mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: remove some of the deprecated theme.colors.* (#34056)
This commit is contained in:
committed by
GitHub
parent
d6ed819fe2
commit
5d6a979cd0
@@ -202,10 +202,8 @@ export default function PopKPI(props: PopKPIProps) {
|
||||
comparisonColorScheme === ColorSchemeEnum.Red);
|
||||
|
||||
// Set background and text colors based on the conditions
|
||||
bgColor = useSuccess
|
||||
? theme.colors.success.light2
|
||||
: theme.colors.error.light2;
|
||||
txtColor = useSuccess ? theme.colorSuccess : theme.colorError;
|
||||
bgColor = useSuccess ? theme.colorSuccessBg : theme.colorErrorBg;
|
||||
txtColor = useSuccess ? theme.colorSuccessText : theme.colorErrorText;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user