Fix prettier formatting

This commit is contained in:
Taras Mankovski
2020-10-02 23:48:13 -04:00
parent 28edd7d29c
commit 0ff2b6788f
34 changed files with 44 additions and 14 deletions
+5 -4
View File
@@ -1,6 +1,7 @@
---
'@backstage/core-api': minor
---
Add initial RouteRefRegistry
Starting out some work to bring routing back and working as part of the work towards finalizing #1536
@@ -11,7 +12,9 @@ This is some of the groundwork of an experiment we're working on to enable routi
const App = () => (
<BackstageRoutes>
<Navigate key="/" to="/catalog" />
<CatalogRoute path="/catalog" > // catalogRouteRef
<CatalogRoute path="/catalog">
{' '}
// catalogRouteRef
<EntityPage type="service">
<OverviewContent path="/">
<WidgetA />
@@ -22,7 +25,6 @@ const App = () => (
<ApiDocsRoute path="/api" />
<DocsRoute path="/docs" />
</EntityPage>
<EntityPage type="website">
<OverviewContent path="/">
<WidgetA />
@@ -32,7 +34,6 @@ const App = () => (
<SentryRoute path="/sentry" /> // sentryRouteRef
<DocsRoute path="/docs" />
</EntityPage>
<EntityPage>
<OverviewContent path="/">
<WidgetA />
@@ -46,7 +47,7 @@ const App = () => (
<GraphiQLRoute path="/graphiql" />
<LighthouseRoute path="/lighthouse" />
</BackstageRoutes>
)
);
```
As part of inverting the composition of the app, route refs and routing in general was somewhat broken, intentionally. Right now it's not really possible to easily route to different parts of the app from a plugin, or even different parts of the plugin that are not within the same router.