address review: use typed useTheme from @apache-superset/core/theme in ChartRenderer

This commit is contained in:
Evan Rusackas
2026-04-22 12:41:09 -07:00
parent 21a089b4a0
commit ca6e120678

View File

@@ -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,