Răsfoiți Sursa

fix lint errors

Yuki Takei 3 ani în urmă
părinte
comite
421c22c873
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      packages/app/src/components/Navbar/SubNavButtons.tsx

+ 3 - 1
packages/app/src/components/Navbar/SubNavButtons.tsx

@@ -204,7 +204,9 @@ const SubNavButtonsSubstance = (props: SubNavButtonsSubstanceProps): JSX.Element
     if (!isIPageInfoForEntity(pageInfo)) {
     if (!isIPageInfoForEntity(pageInfo)) {
       return undefined;
       return undefined;
     }
     }
-    return props => <WideViewMenuItem {...props} onClickMenuItem={switchContentWidthClickHandler} />;
+    return function WideViewMenuItem(props: WideViewMenuItemProps) {
+      return <WideViewMenuItem {...props} onClickMenuItem={switchContentWidthClickHandler} />;
+    };
   }, [pageInfo, switchContentWidthClickHandler]);
   }, [pageInfo, switchContentWidthClickHandler]);
 
 
   if (!isIPageInfoForOperation(pageInfo)) {
   if (!isIPageInfoForOperation(pageInfo)) {