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
@@ -55,6 +55,9 @@ export function wrapInTestApp(
NotFoundErrorPage,
BootErrorPage,
Progress,
Router: ({ children }) => (
<MemoryRouter initialEntries={routeEntries} children={children} />
),
},
icons: defaultSystemIcons,
plugins: [],
@@ -79,9 +82,7 @@ export function wrapInTestApp(
return (
<AppProvider>
<MemoryRouter initialEntries={routeEntries}>
<Route component={Wrapper} />
</MemoryRouter>
<Route component={Wrapper} />
</AppProvider>
);
}