Просмотр исходного кода

Merge branch 'feat/gw7832-show-bookmarks-item-on-sidebar' into feat/gw7837-add-dropdown-button-to-bookmark-item

Mudana-Grune 3 лет назад
Родитель
Сommit
ee787170df
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      packages/app/src/components/Sidebar/Bookmarks.tsx

+ 3 - 4
packages/app/src/components/Sidebar/Bookmarks.tsx

@@ -101,7 +101,7 @@ const Bookmarks = () : JSX.Element => {
     getMyBookmarkList();
     getMyBookmarkList();
   }, [getMyBookmarkList]);
   }, [getMyBookmarkList]);
 
 
-  const renderBookmarkList = () => {
+  const renderBookmarksItem = () => {
     if (pages.length === 0) {
     if (pages.length === 0) {
       return (
       return (
         <h3 className="pl-3">
         <h3 className="pl-3">
@@ -122,10 +122,9 @@ const Bookmarks = () : JSX.Element => {
           <h3 className="pl-3">
           <h3 className="pl-3">
             { t('Not available for guest') }
             { t('Not available for guest') }
           </h3>
           </h3>
-        ) : (
-          { renderBookmarkList }
-        )
+        ) : renderBookmarksItem()
       }
       }
+
     </>
     </>
   );
   );