packages/core-api: move router component inside app and configure it with base path

This commit is contained in:
Patrik Oldsberg
2020-06-06 15:55:46 +02:00
parent 2edcd94793
commit c40a2a5e61
7 changed files with 51 additions and 29 deletions
+3 -6
View File
@@ -16,7 +16,6 @@
import { createApp, AlertDisplay, OAuthRequestDialog } from '@backstage/core';
import React, { FC } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import Root from './components/Root';
import * as plugins from './plugins';
import apis from './apis';
@@ -33,11 +32,9 @@ const App: FC<{}> = () => (
<AppProvider>
<AlertDisplay />
<OAuthRequestDialog />
<Router>
<Root>
<AppComponent />
</Root>
</Router>
<Root>
<AppComponent />
</Root>
</AppProvider>
);