瀏覽代碼

move comment

yohei0125 4 年之前
父節點
當前提交
639fa39497
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/app/src/components/Page/PageListItem.tsx

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

@@ -62,8 +62,8 @@ const PageListItem: FC<Props> = memo((props:Props) => {
     }
     }
   }, [isDeviceSmallerThanLg, onClickSearchResultItem, pageData._id]);
   }, [isDeviceSmallerThanLg, onClickSearchResultItem, pageData._id]);
 
 
-  // background color of list item changes when class "active" exists under 'grw-search-result-item'
   const styleListGroupItem = (!isDeviceSmallerThanLg && onClickCheckbox != null) ? 'list-group-item-action' : '';
   const styleListGroupItem = (!isDeviceSmallerThanLg && onClickCheckbox != null) ? 'list-group-item-action' : '';
+  // background color of list item changes when class "active" exists under 'grw-search-result-item'
   const styleActive = !isDeviceSmallerThanLg && isSelected ? 'active' : '';
   const styleActive = !isDeviceSmallerThanLg && isSelected ? 'active' : '';
   const styleBorder = onClickCheckbox != null ? 'border-bottom' : 'list-group-item p-0';
   const styleBorder = onClickCheckbox != null ? 'border-bottom' : 'list-group-item p-0';