chore: some other deprecations

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-08-15 09:57:57 +02:00
parent 9afc8a6000
commit 7ba66a38cb
4 changed files with 199 additions and 168 deletions
+10 -8
View File
@@ -16,18 +16,20 @@
import React from 'react'; // Add this line to import React
import { createPageExtension } from '@backstage/frontend-plugin-api';
import { PageBlueprint } from '@backstage/frontend-plugin-api';
import {
compatWrapper,
convertLegacyRouteRef,
} from '@backstage/core-compat-api';
import { rootCatalogKubernetesRouteRef } from '../plugin';
export const kubernetesPage = createPageExtension({
defaultPath: '/kubernetes',
// you can reuse the existing routeRef
// by wrapping into the convertLegacyRouteRef.
routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
// these inputs usually match the props required by the component.
loader: () => import('../Router').then(m => compatWrapper(<m.Router />)),
export const kubernetesPage = PageBlueprint.make({
params: {
defaultPath: '/kubernetes',
// you can reuse the existing routeRef
// by wrapping into the convertLegacyRouteRef.
routeRef: convertLegacyRouteRef(rootCatalogKubernetesRouteRef),
// these inputs usually match the props required by the component.
loader: () => import('../Router').then(m => compatWrapper(<m.Router />)),
},
});