reiji-h před 2 roky
rodič
revize
11dd63eae0

+ 6 - 3
apps/app/src/components/Common/PagePathNav/PagePathNav.tsx

@@ -1,7 +1,6 @@
-import type { FC } from 'react';
 import React, {
 import React, {
   useEffect,
   useEffect,
-  useMemo, useRef,
+  useRef,
   useState,
   useState,
 } from 'react';
 } from 'react';
 
 
@@ -41,7 +40,7 @@ const Separator = ({ className }: {className?: string}): JSX.Element => {
   return <span className={`separator ${className ?? ''} ${styles['grw-mx-02em']}`}>/</span>;
   return <span className={`separator ${className ?? ''} ${styles['grw-mx-02em']}`}>/</span>;
 };
 };
 
 
-export const PagePathNav: FC<Props> = (props: Props) => {
+export const PagePathNav = (props: Props): JSX.Element => {
   const {
   const {
     pageId, pagePath, isWipPage, isSingleLineMode, isCollapseParents,
     pageId, pagePath, isWipPage, isSingleLineMode, isCollapseParents,
     formerLinkClassName, latterLinkClassName, maxWidth,
     formerLinkClassName, latterLinkClassName, maxWidth,
@@ -111,6 +110,8 @@ export const PagePathNav: FC<Props> = (props: Props) => {
   );
   );
 };
 };
 
 
+PagePathNav.displayName = 'PagePathNav';
+
 
 
 type PagePathNavStickyProps = Omit<Props, 'isCollapseParents'>;
 type PagePathNavStickyProps = Omit<Props, 'isCollapseParents'>;
 
 
@@ -156,3 +157,5 @@ export const PagePathNavSticky = (props: PagePathNavStickyProps): JSX.Element =>
     </div>
     </div>
   );
   );
 };
 };
+
+PagePathNavSticky.displayName = 'PagePathNavSticky';