Skip to content

Commit

Permalink
now thats prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
thejcannon committed Jan 9, 2024
1 parent 0298116 commit 25d45e8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/docusaurus/src/client/exports/ComponentCreator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ export default function ComponentCreator(
}
if (path.endsWith('/*')) {
return Loadable({
loading: Loading,
loader: () => import('@theme/NotFound/Content'),
modules: ['@theme/NotFound/Content'],
webpack: () => [require.resolveWeak('@theme/NotFound/Content')],
render(loaded, props) {
const NotFoundContent = loaded.default;
return (
<RouteContextProvider
// Do we want a better name than native-default?
value={{plugin: {name: 'native', id: 'default'}}}>
<NotFoundContent {...(props as JSX.IntrinsicAttributes)} />
</RouteContextProvider>
);
},
loading: Loading,
loader: () => import('@theme/NotFound/Content'),
modules: ['@theme/NotFound/Content'],
webpack: () => [require.resolveWeak('@theme/NotFound/Content')],
render(loaded, props) {
const NotFoundContent = loaded.default;
return (
<RouteContextProvider
// Do we want a better name than native-default?
value={{plugin: {name: 'native', id: 'default'}}}>
<NotFoundContent {...(props as JSX.IntrinsicAttributes)} />
</RouteContextProvider>
);
},
});
}
}

const chunkNames = routesChunkNames[`${path}-${hash}`]!;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 25d45e8

Please sign in to comment.