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

125587 change from isBookmarkItem to isNarrowView

soumaeda 2 лет назад
Родитель
Сommit
27e3e8aac8

+ 1 - 1
apps/app/src/components/Bookmarks/BookmarkItem.tsx

@@ -136,7 +136,7 @@ export const BookmarkItem = (props: Props): JSX.Element => {
             onPressEnter={pressEnterForRenameHandler}
             validationTarget={ValidationTarget.PAGE}
           />
-        ) : <PageListItemS page={bookmarkedPage} pageTitle={pageTitle} isBookmarkItem/>}
+        ) : <PageListItemS page={bookmarkedPage} pageTitle={pageTitle} isNarrowView/>}
 
         <div className='grw-foldertree-control'>
           <PageItemControl

+ 3 - 3
apps/app/src/components/PageList/PageListItemS.tsx

@@ -12,7 +12,7 @@ type PageListItemSProps = {
   page: IPageHasId,
   noLink?: boolean,
   pageTitle?: string
-  isBookmarkItem?: boolean,
+  isNarrowView?: boolean,
 }
 
 export const PageListItemS = (props: PageListItemSProps): JSX.Element => {
@@ -21,7 +21,7 @@ export const PageListItemS = (props: PageListItemSProps): JSX.Element => {
     page,
     noLink = false,
     pageTitle,
-    isBookmarkItem = false,
+    isNarrowView = false,
   } = props;
 
   const path = pageTitle != null ? pageTitle : page.path;
@@ -31,7 +31,7 @@ export const PageListItemS = (props: PageListItemSProps): JSX.Element => {
     pagePathElement = <a className="text-break" href={page.path}>{pagePathElement}</a>;
   }
 
-  if (isBookmarkItem) {
+  if (isNarrowView) {
     pagePathElement = (
       <div className={`${styles['page-list']}`}>
         <div className="mx-2 bookmarks-path-element">