Просмотр исходного кода

remove withTranslation function from CustomNavbar

kaori 5 лет назад
Родитель
Сommit
b2faa1c415
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      src/client/js/components/CustomNavbar.jsx

+ 2 - 4
src/client/js/components/CustomNavbar.jsx

@@ -6,15 +6,13 @@ import {
   Nav, NavItem, NavLink, TabContent, TabPane,
   Nav, NavItem, NavLink, TabContent, TabPane,
 } from 'reactstrap';
 } from 'reactstrap';
 
 
-import { withTranslation } from 'react-i18next';
-
 import { withUnstatedContainers } from './UnstatedUtils';
 import { withUnstatedContainers } from './UnstatedUtils';
 
 
 import CustomNavbarContainer from '../services/CustomNavbarContainer';
 import CustomNavbarContainer from '../services/CustomNavbarContainer';
 
 
 
 
 const CustomNavbar = (props) => {
 const CustomNavbar = (props) => {
-  const { t, customNavbarContainer } = props;
+  const { customNavbarContainer } = props;
   const { switchActiveTab } = customNavbarContainer;
   const { switchActiveTab } = customNavbarContainer;
   const { activeTab } = customNavbarContainer.state;
   const { activeTab } = customNavbarContainer.state;
   // [TODO: set default active tab by gw4079]
   // [TODO: set default active tab by gw4079]
@@ -99,4 +97,4 @@ CustomNavbar.propTypes = {
   navTabMapping: PropTypes.object,
   navTabMapping: PropTypes.object,
 };
 };
 
 
-export default withTranslation()(CustomNavbarWrapper);
+export default CustomNavbarWrapper;