File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { themeSwitcher } from "@siemens/ix" ;
2- import { useIxTheme as getIxTheme } from "@siemens/ix-aggrid" ;
2+ import { getIxTheme } from "@siemens/ix-aggrid" ;
33import { IxApplicationContext } from "@siemens/ix-react" ;
44import "@siemens/ix/dist/siemens-ix/siemens-ix-core.css" ;
55import "@siemens/ix/dist/siemens-ix/theme/classic-dark.css" ;
@@ -13,6 +13,7 @@ import "./i18n";
1313import "./index.css" ;
1414import DevicesPage from "./pages/devices/index.tsx" ;
1515import OverviewPage from "./pages/overview/index.tsx" ;
16+ import * as agGrid from "ag-grid-community" ;
1617
1718ModuleRegistry . registerModules ( [ AllCommunityModule ] ) ;
1819
@@ -37,7 +38,7 @@ function optionalTheme() {
3738optionalTheme ( ) ;
3839
3940async function configureAgGridTheme ( ) {
40- const ixTheme = await getIxTheme ( ( ) => import ( "ag-grid-community" ) ) ;
41+ const ixTheme = getIxTheme ( agGrid ) ;
4142 provideGlobalGridOptions ( {
4243 theme : ixTheme ,
4344 } ) ;
You can’t perform that action at this time.
0 commit comments