Skip to content

Commit ce2ebd0

Browse files
committed
use new import function
1 parent 365577b commit ce2ebd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/react-starter/src/main.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { themeSwitcher } from "@siemens/ix";
2-
import { useIxTheme as getIxTheme } from "@siemens/ix-aggrid";
2+
import { getIxTheme } from "@siemens/ix-aggrid";
33
import { IxApplicationContext } from "@siemens/ix-react";
44
import "@siemens/ix/dist/siemens-ix/siemens-ix-core.css";
55
import "@siemens/ix/dist/siemens-ix/theme/classic-dark.css";
@@ -13,6 +13,7 @@ import "./i18n";
1313
import "./index.css";
1414
import DevicesPage from "./pages/devices/index.tsx";
1515
import OverviewPage from "./pages/overview/index.tsx";
16+
import * as agGrid from "ag-grid-community";
1617

1718
ModuleRegistry.registerModules([AllCommunityModule]);
1819

@@ -37,7 +38,7 @@ function optionalTheme() {
3738
optionalTheme();
3839

3940
async function configureAgGridTheme() {
40-
const ixTheme = await getIxTheme(() => import("ag-grid-community"));
41+
const ixTheme = getIxTheme(agGrid);
4142
provideGlobalGridOptions({
4243
theme: ixTheme,
4344
});

0 commit comments

Comments
 (0)