diff --git a/.changeset/late-books-greet-2.md b/.changeset/late-books-greet-2.md new file mode 100644 index 0000000000..8e2669dcf4 --- /dev/null +++ b/.changeset/late-books-greet-2.md @@ -0,0 +1,15 @@ +--- +'@backstage/create-app': patch +--- + +`@backstage/plugin-catalog-import` has been refactored, so the `App.tsx` of the backstage apps need to be updated: + +```diff +// packages/app/src/App.tsx + + } ++ element={} + /> +``` diff --git a/.changeset/late-books-greet.md b/.changeset/late-books-greet.md index 512aa4ecca..ab1299e1ef 100644 --- a/.changeset/late-books-greet.md +++ b/.changeset/late-books-greet.md @@ -1,6 +1,4 @@ --- -'example-app': patch -'@backstage/create-app': patch '@backstage/plugin-catalog-import': minor --- @@ -8,14 +6,14 @@ The plugin has been refactored and is now based on a configurable state machine Depending on the outcome of the 'analyze' stage, different flows are selected ('single-location', 'multiple-locations', 'no-location'). Each flow can define it's own components that guide the user. -During the refactoring, the `catalogRouteRef` property of the `ImportComponentRouter` has been removed, so the `App.tsx` of the backstage apps need to be updated: +During the refactoring, the `catalogRouteRef` property of the `CatalogImportPage` has been removed, so the `App.tsx` of the backstage apps need to be updated: ```diff // packages/app/src/App.tsx } -+ element={} +- element={} ++ element={} /> ``` diff --git a/packages/create-app/templates/default-app/packages/app/src/App.tsx b/packages/create-app/templates/default-app/packages/app/src/App.tsx index ca2fc3564f..711e501224 100644 --- a/packages/create-app/templates/default-app/packages/app/src/App.tsx +++ b/packages/create-app/templates/default-app/packages/app/src/App.tsx @@ -12,7 +12,7 @@ import { AppSidebar } from './sidebar'; import { Route, Navigate } from 'react-router'; import { Router as CatalogRouter } from '@backstage/plugin-catalog'; import { Router as DocsRouter } from '@backstage/plugin-techdocs'; -import { Router as ImportComponentRouter } from '@backstage/plugin-catalog-import'; +import { CatalogImportPage } from '@backstage/plugin-catalog-import'; import { Router as TechRadarRouter } from '@backstage/plugin-tech-radar'; import { SearchPage as SearchRouter } from '@backstage/plugin-search'; import { Router as SettingsRouter } from '@backstage/plugin-user-settings'; @@ -46,10 +46,7 @@ const App = () => ( path="/tech-radar" element={} /> - } - /> + } /> }