plugins: remove unnecessary use of convertLegacyRouteRef(s)

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-11-23 14:17:58 +01:00
parent c8fc1429b4
commit 1c7ea4a3e8
33 changed files with 170 additions and 182 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { EntityCardType } from '@backstage/plugin-catalog-react/alpha';
import { EntityPredicate } from '@backstage/plugin-catalog-react/alpha';
import { ExtensionDataRef } from '@backstage/frontend-plugin-api';
import { ExtensionInput } from '@backstage/frontend-plugin-api';
import { ExternalRouteRef } from '@backstage/frontend-plugin-api';
import { ExternalRouteRef } from '@backstage/core-plugin-api';
import { JSX as JSX_2 } from 'react';
import { OverridableExtensionDefinition } from '@backstage/frontend-plugin-api';
import { OverridableFrontendPlugin } from '@backstage/frontend-plugin-api';
@@ -18,7 +18,7 @@ import { TranslationRef } from '@backstage/frontend-plugin-api';
const _default: OverridableFrontendPlugin<
{},
{
catalogIndex: ExternalRouteRef<undefined>;
catalogIndex: ExternalRouteRef<undefined, true>;
},
{
'entity-card:org/group-profile': OverridableExtensionDefinition<{
+2 -3
View File
@@ -14,7 +14,6 @@
* limitations under the License.
*/
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
import { catalogIndexRouteRef } from './routes';
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
@@ -122,9 +121,9 @@ export default createFrontendPlugin({
EntityOwnershipCard,
EntityUserProfileCard,
],
externalRoutes: convertLegacyRouteRefs({
externalRoutes: {
catalogIndex: catalogIndexRouteRef,
}),
},
});
export { orgTranslationRef } from './translation';