mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-25 12:38:57 +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('/*')) {
|
if (path.endsWith('/*')) {
|
||||||
return Loadable({
|
return Loadable({
|
||||||
loading: Loading,
|
loading: Loading,
|
||||||
loader: () => import('@theme/NotFound/Content'),
|
loader: () => import('@theme/NotFound/Content'),
|
||||||
modules: ['@theme/NotFound/Content'],
|
modules: ['@theme/NotFound/Content'],
|
||||||
webpack: () => [require.resolveWeak('@theme/NotFound/Content')],
|
webpack: () => [require.resolveWeak('@theme/NotFound/Content')],
|
||||||
render(loaded, props) {
|
render(loaded, props) {
|
||||||
const NotFoundContent = loaded.default;
|
const NotFoundContent = loaded.default;
|
||||||
return (
|
return (
|
||||||
<RouteContextProvider
|
<RouteContextProvider
|
||||||
// Do we want a better name than native-default?
|
// Do we want a better name than native-default?
|
||||||
value={{plugin: {name: 'native', id: 'default'}}}>
|
value={{plugin: {name: 'native', id: 'default'}}}>
|
||||||
<NotFoundContent {...(props as JSX.IntrinsicAttributes)} />
|
<NotFoundContent {...(props as JSX.IntrinsicAttributes)} />
|
||||||
</RouteContextProvider>
|
</RouteContextProvider>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const chunkNames = routesChunkNames[`${path}-${hash}`]!;
|
const chunkNames = routesChunkNames[`${path}-${hash}`]!;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue