Yuki Takei 3 лет назад
Родитель
Сommit
421c22c873
1 измененных файлов с 3 добавлено и 1 удалено
  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)) {
       return undefined;
     }
-    return props => <WideViewMenuItem {...props} onClickMenuItem={switchContentWidthClickHandler} />;
+    return function WideViewMenuItem(props: WideViewMenuItemProps) {
+      return <WideViewMenuItem {...props} onClickMenuItem={switchContentWidthClickHandler} />;
+    };
   }, [pageInfo, switchContentWidthClickHandler]);
 
   if (!isIPageInfoForOperation(pageInfo)) {