mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 11:38:48 +02:00
now thats prettier
This commit is contained in:
parent
0298116a93
commit
25d45e884a
1 changed files with 15 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue