now thats prettier

This commit is contained in:
Joshua 2024-01-09 10:36:03 -06:00
parent 0298116a93
commit 25d45e884a

View file

@ -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