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

125587 remove a tag from isNarrowView

soumaeda 2 лет назад
Родитель
Сommit
c3350a2325
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/components/PageList/PageListItemS.tsx

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

@@ -32,12 +32,12 @@ export const PageListItemS = (props: PageListItemSProps): JSX.Element => {
     pagePathElement = <a className="text-break" href={page.path}>{pagePathElement}</a>;
   }
 
-  if (isNarrowView && !noLink) {
+  if (isNarrowView) {
     pagePathElement = (
       <div className={`${styles['page-list']}`}>
         <div className="mx-2 page-title">
           <Clamp lines={2}>
-            <a className="text-break" href={page.path}>{pagePathElement}</a>
+            {pagePathElement}
           </Clamp>
         </div>
       </div>