dev-utils: fix deprecated routes not being wrapped in router

This commit is contained in:
Patrik Oldsberg
2020-09-10 15:36:00 +02:00
parent 06fe05bac0
commit be104f473b
+2 -1
View File
@@ -31,6 +31,7 @@ import {
AnyApiFactory,
} from '@backstage/core';
import SentimentDissatisfiedIcon from '@material-ui/icons/SentimentDissatisfied';
import { Routes } from 'react-router';
// TODO(rugvip): export proper plugin type from core that isn't the plugin class
type BackstagePlugin = ReturnType<typeof createPlugin>;
@@ -97,7 +98,7 @@ class DevAppBuilder {
<AppRouter>
<SidebarPage>
{sidebar}
{deprecatedAppRoutes}
<Routes>{deprecatedAppRoutes}</Routes>
</SidebarPage>
</AppRouter>
</AppProvider>