|
@@ -5,7 +5,6 @@ import React, {
|
|
|
import { useTranslation } from 'next-i18next';
|
|
import { useTranslation } from 'next-i18next';
|
|
|
|
|
|
|
|
import { ISelectableAll } from '~/client/interfaces/selectable-all';
|
|
import { ISelectableAll } from '~/client/interfaces/selectable-all';
|
|
|
-import AppContainer from '~/client/services/AppContainer';
|
|
|
|
|
import { toastSuccess } from '~/client/util/apiNotification';
|
|
import { toastSuccess } from '~/client/util/apiNotification';
|
|
|
import { IFormattedSearchResult, IPageWithSearchMeta } from '~/interfaces/search';
|
|
import { IFormattedSearchResult, IPageWithSearchMeta } from '~/interfaces/search';
|
|
|
import { OnDeletedFunction } from '~/interfaces/ui';
|
|
import { OnDeletedFunction } from '~/interfaces/ui';
|
|
@@ -28,8 +27,6 @@ export interface IReturnSelectedPageIds {
|
|
|
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
|
- appContainer: AppContainer,
|
|
|
|
|
-
|
|
|
|
|
pages?: IPageWithSearchMeta[],
|
|
pages?: IPageWithSearchMeta[],
|
|
|
searchingKeyword?: string,
|
|
searchingKeyword?: string,
|
|
|
|
|
|
|
@@ -44,7 +41,6 @@ type Props = {
|
|
|
|
|
|
|
|
const SearchPageBaseSubstance: ForwardRefRenderFunction<ISelectableAll & IReturnSelectedPageIds, Props> = (props:Props, ref) => {
|
|
const SearchPageBaseSubstance: ForwardRefRenderFunction<ISelectableAll & IReturnSelectedPageIds, Props> = (props:Props, ref) => {
|
|
|
const {
|
|
const {
|
|
|
- appContainer,
|
|
|
|
|
pages,
|
|
pages,
|
|
|
searchingKeyword,
|
|
searchingKeyword,
|
|
|
forceHideMenuItems,
|
|
forceHideMenuItems,
|
|
@@ -203,7 +199,6 @@ const SearchPageBaseSubstance: ForwardRefRenderFunction<ISelectableAll & IReturn
|
|
|
<div className="mw-0 flex-grow-1 flex-basis-0 d-none d-lg-block search-result-content">
|
|
<div className="mw-0 flex-grow-1 flex-basis-0 d-none d-lg-block search-result-content">
|
|
|
{ selectedPageWithMeta != null && (
|
|
{ selectedPageWithMeta != null && (
|
|
|
<SearchResultContent
|
|
<SearchResultContent
|
|
|
- appContainer={appContainer}
|
|
|
|
|
pageWithMeta={selectedPageWithMeta}
|
|
pageWithMeta={selectedPageWithMeta}
|
|
|
highlightKeywords={highlightKeywords}
|
|
highlightKeywords={highlightKeywords}
|
|
|
showPageControlDropdown={!isGuestUser}
|
|
showPageControlDropdown={!isGuestUser}
|