|
@@ -15,6 +15,7 @@ import AttachmentIcon from './Icons/AttachmentIcon';
|
|
|
import { withUnstatedContainers } from './UnstatedUtils';
|
|
import { withUnstatedContainers } from './UnstatedUtils';
|
|
|
import PageAccessoriesContainer from '../services/PageAccessoriesContainer';
|
|
import PageAccessoriesContainer from '../services/PageAccessoriesContainer';
|
|
|
import PageAttachment from './PageAttachment';
|
|
import PageAttachment from './PageAttachment';
|
|
|
|
|
+import PageList from './PageList';
|
|
|
|
|
|
|
|
const PageAccessoriesModal = (props) => {
|
|
const PageAccessoriesModal = (props) => {
|
|
|
const { t, pageAccessoriesContainer } = props;
|
|
const { t, pageAccessoriesContainer } = props;
|
|
@@ -72,7 +73,9 @@ const PageAccessoriesModal = (props) => {
|
|
|
</NavItem>
|
|
</NavItem>
|
|
|
</Nav>
|
|
</Nav>
|
|
|
<TabContent activeTab={activeTab}>
|
|
<TabContent activeTab={activeTab}>
|
|
|
- <TabPane tabId="pagelist"></TabPane>
|
|
|
|
|
|
|
+ <TabPane tabId="pagelist">
|
|
|
|
|
+ {pageAccessoriesContainer.state.activeComponents.has('pagelist') && <PageList />}
|
|
|
|
|
+ </TabPane>
|
|
|
<TabPane tabId="timeline"></TabPane>
|
|
<TabPane tabId="timeline"></TabPane>
|
|
|
<TabPane tabId="recent-changes"></TabPane>
|
|
<TabPane tabId="recent-changes"></TabPane>
|
|
|
<TabPane tabId="attachment" className="p-4">
|
|
<TabPane tabId="attachment" className="p-4">
|
|
@@ -96,7 +99,6 @@ PageAccessoriesModal.propTypes = {
|
|
|
t: PropTypes.func.isRequired, // i18next
|
|
t: PropTypes.func.isRequired, // i18next
|
|
|
// pageContainer: PropTypes.instanceOf(PageContainer).isRequired,
|
|
// pageContainer: PropTypes.instanceOf(PageContainer).isRequired,
|
|
|
pageAccessoriesContainer: PropTypes.instanceOf(PageAccessoriesContainer).isRequired,
|
|
pageAccessoriesContainer: PropTypes.instanceOf(PageAccessoriesContainer).isRequired,
|
|
|
-
|
|
|
|
|
isOpen: PropTypes.bool.isRequired,
|
|
isOpen: PropTypes.bool.isRequired,
|
|
|
onClose: PropTypes.func,
|
|
onClose: PropTypes.func,
|
|
|
};
|
|
};
|