plugins: cleanup unnecessary use of compatWrapper

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-11-23 00:51:55 +01:00
parent 358c6f7021
commit d02db50b42
19 changed files with 186 additions and 235 deletions
-1
View File
@@ -60,7 +60,6 @@
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/core-app-api": "workspace:^",
"@backstage/core-compat-api": "workspace:^",
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/frontend-plugin-api": "workspace:^",
+6 -9
View File
@@ -26,7 +26,6 @@ import {
storageApiRef,
ApiBlueprint,
} from '@backstage/frontend-plugin-api';
import { compatWrapper } from '@backstage/core-compat-api';
import { VisitListener } from './components/';
import { visitsApiRef, VisitsStorageApi } from './api';
@@ -57,14 +56,12 @@ const homePage = PageBlueprint.makeWithOverrides({
path: '/home',
routeRef: rootRouteRef,
loader: () =>
import('./components/').then(m =>
compatWrapper(
<m.HomepageCompositionRoot
children={inputs.props?.get(coreExtensionData.reactElement)}
title={inputs.props?.get(titleExtensionDataRef)}
/>,
),
),
import('./components/').then(m => (
<m.HomepageCompositionRoot
children={inputs.props?.get(coreExtensionData.reactElement)}
title={inputs.props?.get(titleExtensionDataRef)}
/>
)),
});
},
});