Parcourir la source

125587 add nolink in condition

soumaeda il y a 2 ans
Parent
commit
fe87413dc1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apps/app/src/components/PageList/PageListItemS.tsx

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

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