mirror of
https://github.com/apache/superset.git
synced 2026-08-03 20:42:30 +00:00
feat: add a theme CRUD page to manage themes (#34182)
Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me>
This commit is contained in:
committed by
GitHub
parent
5f11f9097a
commit
e741a3167f
@@ -16,7 +16,12 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { ErrorLevel, styled, themeObject, useTheme } from '@superset-ui/core';
|
||||
import {
|
||||
ErrorLevel,
|
||||
styled,
|
||||
useTheme,
|
||||
getColorVariants,
|
||||
} from '@superset-ui/core';
|
||||
import { Icons } from '@superset-ui/core/components';
|
||||
|
||||
const StyledContent = styled.div`
|
||||
@@ -42,7 +47,7 @@ export function BasicErrorAlert({
|
||||
title,
|
||||
}: BasicErrorAlertProps) {
|
||||
const theme = useTheme();
|
||||
const variants = themeObject.getColorVariants(level);
|
||||
const variants = getColorVariants(theme, level);
|
||||
const style: React.CSSProperties = {
|
||||
backgroundColor: variants.bg,
|
||||
borderColor: variants.border,
|
||||
|
||||
Reference in New Issue
Block a user