Преглед на файлове

Rename childCount to getChildCount

Rename method childCount to getChildCount
Mudana-Grune преди 3 години
родител
ревизия
71c0bbf69c
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      packages/app/src/components/Sidebar/Bookmarks/BookmarkFolderItem.tsx

+ 2 - 2
packages/app/src/components/Sidebar/Bookmarks/BookmarkFolderItem.tsx

@@ -38,7 +38,7 @@ const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkFolderIt
   const [isCreateAction, setIsCreateAction] = useState<boolean>(false);
   const [isDeleteFolderModalShown, setIsDeleteFolderModalShown] = useState<boolean>(false);
 
-  const childCount = useCallback((): number => {
+  const getChildCount = useCallback((): number => {
     if (currentChildren != null && currentChildren.length > children.length) {
       return currentChildren.length;
     }
@@ -188,7 +188,7 @@ const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkFolderIt
             </div>
             {hasChildren() && (
               <div className="grw-foldertree-count-wrapper">
-                <CountBadge count={ childCount() } />
+                <CountBadge count={ getChildCount() } />
               </div>
             )}
           </>