yohei0125 4 ani în urmă
părinte
comite
b77104eaf4
1 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  1. 1 4
      packages/app/src/components/Page/PageListItem.tsx

+ 1 - 4
packages/app/src/components/Page/PageListItem.tsx

@@ -9,8 +9,6 @@ import { useIsDeviceSmallerThanLg } from '~/stores/ui';
 import { IPageSearchResultData } from '../../interfaces/search';
 import PageItemControl from '../Common/Dropdown/PageItemControl';
 
-import { useIsSearchPage } from '~/stores/context';
-
 const { isTopPage } = pagePathUtils;
 
 type Props = {
@@ -33,7 +31,6 @@ const PageListItem: FC<Props> = memo((props:Props) => {
   } = props;
 
   const { data: isDeviceSmallerThanLg } = useIsDeviceSmallerThanLg();
-  const { data: isSearchPage } = useIsSearchPage();
 
   const pagePath: DevidedPagePath = new DevidedPagePath(pageData.path, true);
 
@@ -71,7 +68,7 @@ const PageListItem: FC<Props> = memo((props:Props) => {
     <li
       key={pageData._id}
       className={`w-100 grw-search-result-item search-result-list
-        ${isSearchPage ? 'list-group-item-action border-bottom' : 'list-group-item p-0'}
+        ${onClickCheckbox != null ? 'list-group-item-action border-bottom' : 'list-group-item p-0'}
         ${responsiveListStyleClass}`
       }
     >