refactor: more review refinements
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
committed by
Patrik Oldsberg
parent
ffd71105a6
commit
b01e709ead
@@ -42,7 +42,7 @@ import { AppIdentityProxy } from '../../../core-app-api/src/apis/implementations
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
import { RouteTracker } from '../routing/RouteTracker';
|
||||
import { getBasePath } from '../routing/getBasePath';
|
||||
import { AppMode } from '@backstage/plugin-auth-react';
|
||||
import { AppAuthProvider } from '@backstage/plugin-auth-react';
|
||||
|
||||
export const AppRoot = createExtension({
|
||||
namespace: 'app',
|
||||
@@ -191,7 +191,7 @@ export function AppRouter(props: AppRouterProps) {
|
||||
return (
|
||||
<RouterComponent>
|
||||
<RouteTracker routeObjects={routeObjects} />
|
||||
<AppMode>{children}</AppMode>
|
||||
<AppAuthProvider>{children}</AppAuthProvider>
|
||||
</RouterComponent>
|
||||
);
|
||||
}
|
||||
@@ -203,7 +203,7 @@ export function AppRouter(props: AppRouterProps) {
|
||||
component={SignInPageComponent}
|
||||
appIdentityProxy={appIdentityProxy}
|
||||
>
|
||||
<AppMode>{children}</AppMode>
|
||||
<AppAuthProvider>{children}</AppAuthProvider>
|
||||
</SignInPageWrapper>
|
||||
</RouterComponent>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user