plugins: wrap extension elements in compatWrapper

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-11-27 17:09:16 +01:00
parent ea06590029
commit a1227cc993
12 changed files with 109 additions and 60 deletions
+7 -2
View File
@@ -24,7 +24,10 @@ import {
import React from 'react';
import { techRadarApiRef } from './api';
import { SampleTechRadarApi } from './sample';
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
import {
compatWrapper,
convertLegacyRouteRef,
} from '@backstage/core-compat-api';
import { rootRouteRef } from './plugin';
/** @alpha */
@@ -44,7 +47,9 @@ export const TechRadarPage = createPageExtension({
}),
),
loader: ({ config }) =>
import('./components').then(m => <m.RadarPage {...config} />),
import('./components').then(m =>
compatWrapper(<m.RadarPage {...config} />),
),
});
/** @alpha */