|
@@ -1,21 +1,22 @@
|
|
|
|
|
+import type { ForwardRefRenderFunction } from 'react';
|
|
|
import React, {
|
|
import React, {
|
|
|
- forwardRef, ForwardRefRenderFunction, useEffect, useImperativeHandle, useRef, useState,
|
|
|
|
|
|
|
+ forwardRef, useEffect, useImperativeHandle, useRef, useState,
|
|
|
} from 'react';
|
|
} from 'react';
|
|
|
|
|
|
|
|
import { useTranslation } from 'next-i18next';
|
|
import { useTranslation } from 'next-i18next';
|
|
|
import dynamic from 'next/dynamic';
|
|
import dynamic from 'next/dynamic';
|
|
|
|
|
|
|
|
-import { ISelectableAll } from '~/client/interfaces/selectable-all';
|
|
|
|
|
|
|
+import type { ISelectableAll } from '~/client/interfaces/selectable-all';
|
|
|
import { toastSuccess } from '~/client/util/toastr';
|
|
import { toastSuccess } from '~/client/util/toastr';
|
|
|
-import { IFormattedSearchResult, IPageWithSearchMeta } from '~/interfaces/search';
|
|
|
|
|
-import { OnDeletedFunction } from '~/interfaces/ui';
|
|
|
|
|
|
|
+import type { IFormattedSearchResult, IPageWithSearchMeta } from '~/interfaces/search';
|
|
|
|
|
+import type { OnDeletedFunction } from '~/interfaces/ui';
|
|
|
import {
|
|
import {
|
|
|
useIsGuestUser, useIsReadOnlyUser, useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
useIsGuestUser, useIsReadOnlyUser, useIsSearchServiceConfigured, useIsSearchServiceReachable,
|
|
|
} from '~/stores/context';
|
|
} from '~/stores/context';
|
|
|
import { usePageDeleteModal } from '~/stores/modal';
|
|
import { usePageDeleteModal } from '~/stores/modal';
|
|
|
import { mutatePageTree } from '~/stores/page-listing';
|
|
import { mutatePageTree } from '~/stores/page-listing';
|
|
|
|
|
|
|
|
-import { ForceHideMenuItems } from '../Common/Dropdown/PageItemControl';
|
|
|
|
|
|
|
+import type { ForceHideMenuItems } from '../Common/Dropdown/PageItemControl';
|
|
|
|
|
|
|
|
// Do not import with next/dynamic
|
|
// Do not import with next/dynamic
|
|
|
// see: https://github.com/weseek/growi/pull/7923
|
|
// see: https://github.com/weseek/growi/pull/7923
|
|
@@ -213,7 +214,7 @@ const SearchPageBaseSubstance: ForwardRefRenderFunction<ISelectableAll & IReturn
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div className="flex-expand-vert d-none d-lg-flex">
|
|
|
|
|
|
|
+ <div className={`${styles['search-result-content']} flex-expand-vert d-none d-lg-flex`}>
|
|
|
{pages != null && pages.length !== 0 && selectedPageWithMeta != null && (
|
|
{pages != null && pages.length !== 0 && selectedPageWithMeta != null && (
|
|
|
<SearchResultContent
|
|
<SearchResultContent
|
|
|
pageWithMeta={selectedPageWithMeta}
|
|
pageWithMeta={selectedPageWithMeta}
|