plugins: remove unnecessary use of convertLegacyRouteRef(s)
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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<{
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user