yohei0125 4 лет назад
Родитель
Сommit
b77104eaf4
1 измененных файлов с 1 добавлено и 4 удалено
  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 { IPageSearchResultData } from '../../interfaces/search';
 import PageItemControl from '../Common/Dropdown/PageItemControl';
 import PageItemControl from '../Common/Dropdown/PageItemControl';
 
 
-import { useIsSearchPage } from '~/stores/context';
-
 const { isTopPage } = pagePathUtils;
 const { isTopPage } = pagePathUtils;
 
 
 type Props = {
 type Props = {
@@ -33,7 +31,6 @@ const PageListItem: FC<Props> = memo((props:Props) => {
   } = props;
   } = props;
 
 
   const { data: isDeviceSmallerThanLg } = useIsDeviceSmallerThanLg();
   const { data: isDeviceSmallerThanLg } = useIsDeviceSmallerThanLg();
-  const { data: isSearchPage } = useIsSearchPage();
 
 
   const pagePath: DevidedPagePath = new DevidedPagePath(pageData.path, true);
   const pagePath: DevidedPagePath = new DevidedPagePath(pageData.path, true);
 
 
@@ -71,7 +68,7 @@ const PageListItem: FC<Props> = memo((props:Props) => {
     <li
     <li
       key={pageData._id}
       key={pageData._id}
       className={`w-100 grw-search-result-item search-result-list
       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}`
         ${responsiveListStyleClass}`
       }
       }
     >
     >