From ca6e120678ef8badc0b68bca2f5fc8e75cf4a4f8 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Wed, 22 Apr 2026 12:41:09 -0700 Subject: [PATCH] address review: use typed useTheme from @apache-superset/core/theme in ChartRenderer --- superset-frontend/src/components/Chart/ChartRenderer.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/components/Chart/ChartRenderer.tsx b/superset-frontend/src/components/Chart/ChartRenderer.tsx index dac9a637406..8e4e567d90d 100644 --- a/superset-frontend/src/components/Chart/ChartRenderer.tsx +++ b/superset-frontend/src/components/Chart/ChartRenderer.tsx @@ -46,8 +46,7 @@ import { } from '@superset-ui/core'; import { logging } from '@apache-superset/core/utils'; import { t } from '@apache-superset/core/translation'; -import { SupersetTheme } from '@apache-superset/core/theme'; -import { useTheme } from '@emotion/react'; +import { useTheme } from '@apache-superset/core/theme'; import { Logger, LOG_ACTIONS_RENDER_CHART } from 'src/logger/LogUtils'; import { EmptyState } from '@superset-ui/core/components'; import { ChartSource } from 'src/types/ChartSource'; @@ -236,7 +235,7 @@ function ChartRendererComponent({ onChartStateChange, } = restProps; - const theme = useTheme() as SupersetTheme; + const theme = useTheme(); const suppressContextMenu = getChartMetadataRegistry().get( formData.viz_type ?? propVizType,