Futa Arai 4 ماه پیش
والد
کامیت
3daae17dcb
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      apps/app/src/client/components/CustomNavigation/CustomNavAndContents.tsx

+ 1 - 3
apps/app/src/client/components/CustomNavigation/CustomNavAndContents.tsx

@@ -13,8 +13,6 @@ type CustomNavAndContentsProps = {
   navRightElement?: ReactNode;
 };
 
-type CustomNavComponent = typeof CustomNavTab;
-
 const CustomNavAndContents = (
   props: CustomNavAndContentsProps,
 ): JSX.Element => {
@@ -30,7 +28,7 @@ const CustomNavAndContents = (
     Object.keys(props.navTabMapping)[defaultTabIndex || 0],
   );
 
-  let SelectedNav: CustomNavComponent = CustomNavTab;
+  let SelectedNav: (props) => JSX.Element;
   switch (navigationMode) {
     case 'tab':
       SelectedNav = CustomNavTab;