Просмотр исходного кода

remove useTranslation with useCustomTitle

yohei0125 3 лет назад
Родитель
Сommit
0028672195
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      packages/app/src/pages/_search.page.tsx

+ 1 - 4
packages/app/src/pages/_search.page.tsx

@@ -1,7 +1,6 @@
 import {
 import {
   NextPage, GetServerSideProps, GetServerSidePropsContext,
   NextPage, GetServerSideProps, GetServerSidePropsContext,
 } from 'next';
 } from 'next';
-import { useTranslation } from 'next-i18next';
 import dynamic from 'next/dynamic';
 import dynamic from 'next/dynamic';
 import Head from 'next/head';
 import Head from 'next/head';
 
 
@@ -37,9 +36,7 @@ type Props = CommonProps & {
 };
 };
 
 
 const SearchPage: NextPage<Props> = (props: Props) => {
 const SearchPage: NextPage<Props> = (props: Props) => {
-  const { t } = useTranslation();
   const { userUISettings } = props;
   const { userUISettings } = props;
-  const title = useCustomTitle(props, t('search_result.title'));
 
 
   useCurrentUser(props.currentUser ?? null);
   useCurrentUser(props.currentUser ?? null);
 
 
@@ -73,7 +70,7 @@ const SearchPage: NextPage<Props> = (props: Props) => {
         {renderScriptTagByName('highlight-addons')}
         {renderScriptTagByName('highlight-addons')}
         */}
         */}
       </Head>
       </Head>
-      <BasicLayout title={title} className={classNames.join(' ')}>
+      <BasicLayout title={useCustomTitle(props, 'GROWI Search')} className={classNames.join(' ')}>
 
 
         <div id="grw-fav-sticky-trigger" className="sticky-top"></div>
         <div id="grw-fav-sticky-trigger" className="sticky-top"></div>
         <div id="main" className="main search-page mt-0">
         <div id="main" className="main search-page mt-0">