TechDocsIndexPage to fall back to DefaultTechDocsHome as LegacyTechDocsHome is deprecated
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
@@ -49,6 +49,11 @@ export type DefaultTechDocsHomeProps = {
|
||||
actions?: TableProps<DocsTableRow>['actions'];
|
||||
};
|
||||
|
||||
/**
|
||||
* Component which renders a default documentation landing page.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const DefaultTechDocsHome = (props: DefaultTechDocsHomeProps) => {
|
||||
const { initialFilter = 'all', columns, actions } = props;
|
||||
return (
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
import React from 'react';
|
||||
import { useOutlet } from 'react-router';
|
||||
import { LegacyTechDocsHome } from './LegacyTechDocsHome';
|
||||
import { DefaultTechDocsHome } from './DefaultTechDocsHome';
|
||||
|
||||
export const TechDocsIndexPage = () => {
|
||||
const outlet = useOutlet();
|
||||
|
||||
return outlet || <LegacyTechDocsHome />;
|
||||
return outlet || <DefaultTechDocsHome />;
|
||||
};
|
||||
|
||||
@@ -28,7 +28,6 @@ export * from './search';
|
||||
export * from './home';
|
||||
export {
|
||||
EntityTechdocsContent,
|
||||
DefaultTechDocsHome,
|
||||
TechDocsCustomHome,
|
||||
TechDocsIndexPage,
|
||||
TechdocsPage,
|
||||
|
||||
Reference in New Issue
Block a user