|
|
@@ -3,17 +3,14 @@ import PropTypes from 'prop-types';
|
|
|
|
|
|
import { withTranslation } from 'react-i18next';
|
|
|
import { pagePathUtils } from '@growi/core';
|
|
|
-import { withUnstatedContainers } from './UnstatedUtils';
|
|
|
|
|
|
-import PageContainer from '~/client/services/PageContainer';
|
|
|
|
|
|
const { convertToNewAffiliationPath } = pagePathUtils;
|
|
|
|
|
|
function ComparePathsTable(props) {
|
|
|
const {
|
|
|
- subordinatedPages, pageContainer, newPagePath, t,
|
|
|
+ path, subordinatedPages, newPagePath, t,
|
|
|
} = props;
|
|
|
- const { path } = pageContainer.state;
|
|
|
|
|
|
return (
|
|
|
<table className="table table-bordered grw-compare-paths-table">
|
|
|
@@ -45,18 +42,13 @@ function ComparePathsTable(props) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * Wrapper component for using unstated
|
|
|
- */
|
|
|
-const PageDuplicateModallWrapper = withUnstatedContainers(ComparePathsTable, [PageContainer]);
|
|
|
-
|
|
|
ComparePathsTable.propTypes = {
|
|
|
t: PropTypes.func.isRequired, // i18next
|
|
|
|
|
|
- pageContainer: PropTypes.instanceOf(PageContainer).isRequired,
|
|
|
+ path: PropTypes.string.isRequired,
|
|
|
subordinatedPages: PropTypes.array.isRequired,
|
|
|
newPagePath: PropTypes.string.isRequired,
|
|
|
};
|
|
|
|
|
|
|
|
|
-export default withTranslation()(PageDuplicateModallWrapper);
|
|
|
+export default withTranslation()(ComparePathsTable);
|