Răsfoiți Sursa

fix lint error

yohei0125 4 ani în urmă
părinte
comite
45a405ca56
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      packages/app/src/components/PageList/PageListItemL.tsx

+ 3 - 3
packages/app/src/components/PageList/PageListItemL.tsx

@@ -100,14 +100,14 @@ const PageListItemLSubstance: ForwardRefRenderFunction<ISelectable, Props> = (pr
 
   const lastUpdateDate = format(new Date(pageData.updatedAt), 'yyyy/MM/dd HH:mm:ss');
 
-  useEffect(()=>{
-    if(isIPageInfoForEntity(pageInfo) && pageInfo != null) {
+  useEffect(() => {
+    if (isIPageInfoForEntity(pageInfo) && pageInfo != null) {
       // likerCount
       setLikerCount(pageInfo.likerIds?.length ?? 0);
       // bookmarkCount
       setBookmarkCount(pageInfo.bookmarkCount ?? 0);
     }
-  },[pageInfo])
+  }, [pageInfo]);
 
   // click event handler
   const clickHandler = useCallback(() => {