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
@@ -1,7 +1,6 @@
import { makeStyles } from '@material-ui/core';
import { createApp } from '@backstage/core';
import React, { FC } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import * as plugins from './plugins';
const useStyles = makeStyles(theme => ({
@@ -33,9 +32,7 @@ const App: FC<{}> = () => {
useStyles();
return (
<AppProvider>
<Router>
<AppComponent />
</Router>
<AppComponent />
</AppProvider>
);
};