You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by am...@apache.org on 2026/09/01 16:21:56 UTC

(superset) 06/15: fix(embedded): correct import paths for the 6.x module layout

This is an automated email from the ASF dual-hosted git repository.

amaannawab923 pushed a commit to branch feat/embedded-chart
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 013762facec1b815f28ab60e0b42041f1b9d071f
Author: amaannawab923 <am...@gmail.com>
AuthorDate: Tue Sep 1 19:00:20 2026 +0530

    fix(embedded): correct import paths for the 6.x module layout
    
    t moved to @apache-superset/core/translation, css/styled to
    @apache-superset/core/theme, and ErrorBoundary is a named export.
---
 superset-frontend/src/embedded/embeddedChart/index.tsx         | 5 +++--
 superset-frontend/src/embedded/embeddedChart/useExploreData.ts | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/embedded/embeddedChart/index.tsx b/superset-frontend/src/embedded/embeddedChart/index.tsx
index 5746da51d9c..da2bd76e2a5 100644
--- a/superset-frontend/src/embedded/embeddedChart/index.tsx
+++ b/superset-frontend/src/embedded/embeddedChart/index.tsx
@@ -18,9 +18,10 @@
  */
 import { useEffect, useState } from 'react';
 import { useDispatch } from 'react-redux';
-import { css, styled, t } from '@superset-ui/core';
+import { css, styled } from '@apache-superset/core/theme';
+import { t } from '@apache-superset/core/translation';
 import { Loading } from '@superset-ui/core/components';
-import ErrorBoundary from 'src/components/ErrorBoundary';
+import { ErrorBoundary } from 'src/components/ErrorBoundary';
 import Chart from 'src/dashboard/components/gridComponents/Chart';
 import getBootstrapData from 'src/utils/getBootstrapData';
 import { setDatasources } from 'src/dashboard/actions/datasources';
diff --git a/superset-frontend/src/embedded/embeddedChart/useExploreData.ts b/superset-frontend/src/embedded/embeddedChart/useExploreData.ts
index 6b4fb253723..575f866d127 100644
--- a/superset-frontend/src/embedded/embeddedChart/useExploreData.ts
+++ b/superset-frontend/src/embedded/embeddedChart/useExploreData.ts
@@ -17,7 +17,8 @@
  * under the License.
  */
 import { useEffect, useState } from 'react';
-import { SupersetClient, t } from '@superset-ui/core';
+import { SupersetClient } from '@superset-ui/core';
+import { t } from '@apache-superset/core/translation';
 import { EmbeddedChartData } from './hydrateEmbedded';
 
 interface State {