白石誠 5 лет назад
Родитель
Сommit
0fffb00398

+ 0 - 31
src/client/js/components/CompareDuplicatePathsTabel.jsx

@@ -1,31 +0,0 @@
-import PropTypes from 'prop-types';
-
-import { withTranslation } from 'react-i18next';
-import { withUnstatedContainers } from './UnstatedUtils';
-
-import PageContainer from '../services/PageContainer';
-
-function CompareDuplicatePathsTable(props) {
-  // ToDo this will be implemented by GW-3374
-  // the return value will be either a tabel or false(boolean) if there are no duplicate path
-  return (
-    false
-  );
-}
-
-
-/**
- * Wrapper component for using unstated
- */
-const PageDuplicateModallWrapper = withUnstatedContainers(CompareDuplicatePathsTable, [PageContainer]);
-
-CompareDuplicatePathsTable.propTypes = {
-  t: PropTypes.func.isRequired, //  i18next
-
-  pageContainer: PropTypes.instanceOf(PageContainer).isRequired,
-  subordinatedPages: PropTypes.array.isRequired,
-  newPagePath: PropTypes.string.isRequired,
-};
-
-
-export default withTranslation()(PageDuplicateModallWrapper);

+ 0 - 5
src/client/js/components/PageDuplicateModal.jsx

@@ -14,7 +14,6 @@ import PageContainer from '../services/PageContainer';
 import PagePathAutoComplete from './PagePathAutoComplete';
 import ApiErrorMessageList from './PageManagement/ApiErrorMessageList';
 import ComparePathsTable from './ComparePathsTable';
-import CompareDuplicatePathsTable from './CompareDuplicatePathsTabel';
 
 
 const PageDuplicateModal = (props) => {
@@ -73,10 +72,6 @@ const PageDuplicateModal = (props) => {
     setIsDuplicateRecursively(!isDuplicateRecursively);
   }
 
-  function changeIsDuplicateRecursivelyAdmitHandler() {
-    setIsDuplicateRecursivelyAdmit(!isDuplicateRecursivelyAdmit);
-  }
-
   const getSubordinatedList = useCallback(async() => {
     try {
       const res = await appContainer.apiv3Get('/pages/subordinated-list', { path });