kaori 3 лет назад
Родитель
Сommit
79e1b080f3
1 измененных файлов с 4 добавлено и 11 удалено
  1. 4 11
      packages/app/src/pages/admin/search.page.tsx

+ 4 - 11
packages/app/src/pages/admin/search.page.tsx

@@ -9,6 +9,7 @@ import { Container, Provider } from 'unstated';
 import AdminAppContainer from '~/client/services/AdminAppContainer';
 import { SupportedActionType } from '~/interfaces/activity';
 import { CommonProps, useCustomTitle } from '~/pages/utils/commons';
+import { useIsSearchServiceReachable } from '~/stores/context';
 
 import { retrieveServerSideProps } from '../../utils/admin-page-util';
 
@@ -18,23 +19,15 @@ const ElasticsearchManagement = dynamic(() => import('~/components/Admin/Elastic
 
 
 type Props = CommonProps & {
-  currentUser: any,
-
-  envVars: any,
-  isAclEnabled: boolean,
-  isSearchServiceConfigured: boolean,
   isSearchServiceReachable: boolean,
-  isMailerSetup: boolean,
-  auditLogEnabled: boolean,
-  auditLogAvailableActions: SupportedActionType[],
-
-  customizeTitle: string,
-  siteUrl: string,
+  // isMailerSetup: boolean,
+  // siteUrl: string,
 };
 
 
 const AdminFullTextSearchManagementPage: NextPage<Props> = (props) => {
   const { t } = useTranslation();
+  useIsSearchServiceReachable(props.isSearchServiceReachable);
   const title = t('full_text_search_management.full_text_search_management');
 
   return (