Update the changesets
This commit is contained in:
@@ -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
|
||||
|
||||
<Route
|
||||
path="/catalog-import"
|
||||
- element={<CatalogImportPage catalogRouteRef={catalogRouteRef} />}
|
||||
+ element={<CatalogImportPage />}
|
||||
/>
|
||||
```
|
||||
@@ -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
|
||||
|
||||
<Route
|
||||
path="/catalog-import"
|
||||
- element={<ImportComponentRouter catalogRouteRef={catalogRouteRef} />}
|
||||
+ element={<ImportComponentRouter />}
|
||||
- element={<CatalogImportPage catalogRouteRef={catalogRouteRef} />}
|
||||
+ element={<CatalogImportPage />}
|
||||
/>
|
||||
```
|
||||
|
||||
@@ -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={<TechRadarRouter width={1500} height={800} />}
|
||||
/>
|
||||
<Route
|
||||
path="/catalog-import"
|
||||
element={<ImportComponentRouter />}
|
||||
/>
|
||||
<Route path="/catalog-import" element={<CatalogImportPage />} />
|
||||
<Route
|
||||
path="/search"
|
||||
element={<SearchRouter/>}
|
||||
|
||||
Reference in New Issue
Block a user