Sfoglia il codice sorgente

🐛 bug: fix table typescipt error

chenshuai2144 5 anni fa
parent
commit
4e2d1cb868
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/pages/user/login/components/Login/LoginTab.tsx

+ 2 - 1
src/pages/user/login/components/Login/LoginTab.tsx

@@ -1,5 +1,4 @@
 import React, { useEffect } from 'react';
-import { TabPaneProps } from 'antd/es/tabs';
 import { Tabs } from 'antd';
 import LoginContext, { LoginContextProps } from './LoginContext';
 
@@ -13,6 +12,8 @@ const generateId = (() => {
   };
 })();
 
+type TabPaneProps = Parameters<typeof Tabs.TabPane>[0];
+
 interface LoginTabProps extends TabPaneProps {
   tabUtil: LoginContextProps['tabUtil'];
   active?: boolean;