packages/core: move LoginPage to layouts and remove it as a hardcoded route in the app (#1020)

This commit is contained in:
Patrik Oldsberg
2020-05-27 08:53:59 +02:00
committed by GitHub
parent 4a93c608a3
commit 6572ea3ecc
5 changed files with 18 additions and 18 deletions
+8 -2
View File
@@ -14,9 +14,14 @@
* limitations under the License.
*/
import { createApp, AlertDisplay, OAuthRequestDialog } from '@backstage/core';
import {
createApp,
AlertDisplay,
OAuthRequestDialog,
LoginPage,
} from '@backstage/core';
import React, { FC } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Root from './components/Root';
import * as plugins from './plugins';
import apis from './apis';
@@ -35,6 +40,7 @@ const App: FC<{}> = () => (
<OAuthRequestDialog />
<Router>
<Root>
<Route key="login" path="/login" component={LoginPage} exact />,
<AppComponent />
</Root>
</Router>