Răsfoiți Sursa

79940 refactor

SULLEY\ryo-h 4 ani în urmă
părinte
comite
ae26d3a39e

+ 0 - 2
packages/app/src/components/SearchPage/SearchResultList.jsx

@@ -9,12 +9,10 @@ class SearchResultList extends React.Component {
       // TODO : send cetain  length of body (revisionBody) from elastisearch by adding some settings to the query and
       //         when keyword is not in page content, display revisionBody.
       // TASK : https://estoc.weseek.co.jp/redmine/issues/79606
-      const highlightedPath = page.elasticSearchResult.highlightedPath;
       return (
         <SearchResultListItem
           page={page}
           onClickInvoked={this.props.onClickInvoked}
-          highlightedPath={highlightedPath}
           noLink
         />
       );

+ 1 - 3
packages/app/src/components/SearchPage/SearchResultListItem.tsx

@@ -1,6 +1,6 @@
 import React, { FC } from 'react';
 
-import { UserPicture, PageListMeta, PagePathLabel } from '@growi/ui';
+import { UserPicture, PageListMeta } from '@growi/ui';
 import { DevidedPagePath } from '@growi/core';
 
 import loggerFactory from '~/utils/logger';
@@ -18,7 +18,6 @@ type Props ={
       highlightedPath: string
     }
   },
-  highlightedPath: string,
   onClickInvoked: (data: string) => void,
 }
 
@@ -30,7 +29,6 @@ const SearchResultListItem: FC<Props> = (props:Props) => {
   const pageId = `#${page._id}`;
 
   const dPagePath = new DevidedPagePath(page.path, false, true);
-  const pagePathElem = <PagePathLabel page={page} isFormerOnly />;
 
   // TODO : send cetain  length of body (revisionBody) from elastisearch by adding some settings to the query and
   //         when keyword is not in page content, display revisionBody.