|
|
@@ -12,20 +12,24 @@ type Props ={
|
|
|
searchingKeyword:string,
|
|
|
focusedPage: null | any,
|
|
|
}
|
|
|
+
|
|
|
+const SearchResultContentSubNavigationWrapper = (props) => {
|
|
|
+ return <SearchResultContentSubNavigation {...props}></SearchResultContentSubNavigation>;
|
|
|
+};
|
|
|
+
|
|
|
+const RevisionLoaderWrapper = (props) => {
|
|
|
+ return <RevisionLoader {...props}></RevisionLoader>;
|
|
|
+};
|
|
|
const SearchResultContent: FC<Props> = (props: Props) => {
|
|
|
const page = props.focusedPage;
|
|
|
if (page == null) return null;
|
|
|
- // Temporaly workaround for lint error
|
|
|
- // later needs to be fixed: RevisoinRender to typescriptcomponet
|
|
|
- const RevisionLoaderTypeAny: any = RevisionLoader;
|
|
|
- const SearchResultContentSubNavigationTypeAny: any = SearchResultContentSubNavigation;
|
|
|
const growiRenderer = props.appContainer.getRenderer('searchresult');
|
|
|
let showTags = false;
|
|
|
if (page.tags != null && page.tags.length > 0) { showTags = true }
|
|
|
return (
|
|
|
<div key={page._id} className="search-result-page mb-5">
|
|
|
- <SearchResultContentSubNavigationTypeAny pageId={page._id} path={page.path}></SearchResultContentSubNavigationTypeAny>
|
|
|
- <RevisionLoaderTypeAny
|
|
|
+ <SearchResultContentSubNavigationWrapper pageId={page._id} path={page.path}></SearchResultContentSubNavigationWrapper>
|
|
|
+ <RevisionLoaderWrapper
|
|
|
growiRenderer={growiRenderer}
|
|
|
pageId={page._id}
|
|
|
pagePath={page.path}
|