Skip to content

Commit

Permalink
remove more core layout
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Oct 25, 2023
1 parent 427d6fb commit b33601e
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions packages/docusaurus/src/client/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,7 @@
*/

import React from 'react';
import '@generated/client-modules';

import routes from '@generated/routes';
import {useLocation} from '@docusaurus/router';
import renderRoutes from '@docusaurus/renderRoutes';
import Root from '@theme/Root';
import normalizeLocation from './normalizeLocation';
import {BrowserContextProvider} from './browserContext';
import {DocusaurusContextProvider} from './docusaurusContext';
import PendingNavigation from './PendingNavigation';

// TODO, quick fix for CSS insertion order
// eslint-disable-next-line import/order
import ErrorBoundary from '@docusaurus/ErrorBoundary';

export default function App(): JSX.Element {
const routeElement = renderRoutes(routes);
const location = useLocation();
return (
<ErrorBoundary>
<DocusaurusContextProvider>
<BrowserContextProvider>
<Root>
<PendingNavigation location={normalizeLocation(location)}>
{routeElement}
</PendingNavigation>
</Root>
</BrowserContextProvider>
</DocusaurusContextProvider>
</ErrorBoundary>
);
return <div>App!</div>;
}

0 comments on commit b33601e

Please sign in to comment.