|
@@ -14,14 +14,9 @@ class PageTimeline extends React.Component {
|
|
|
|
|
|
|
|
constructor(props) {
|
|
constructor(props) {
|
|
|
super(props);
|
|
super(props);
|
|
|
-
|
|
|
|
|
- const { appContainer } = this.props;
|
|
|
|
|
this.showPages = this.showPages.bind(this);
|
|
this.showPages = this.showPages.bind(this);
|
|
|
this.state = {
|
|
this.state = {
|
|
|
- isEnabled: appContainer.getConfig().isEnabledTimeline,
|
|
|
|
|
-
|
|
|
|
|
- // TODO: remove after when timeline is implemented with React and inject data with props
|
|
|
|
|
- pages: this.props.pages,
|
|
|
|
|
|
|
+ pages: [],
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -36,9 +31,6 @@ class PageTimeline extends React.Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
componentWillMount() {
|
|
componentWillMount() {
|
|
|
- if (!this.state.isEnabled) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
const { appContainer } = this.props;
|
|
const { appContainer } = this.props;
|
|
|
|
|
|
|
|
// initialize GrowiRenderer
|
|
// initialize GrowiRenderer
|
|
@@ -47,10 +39,6 @@ class PageTimeline extends React.Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- if (!this.state.isEnabled) {
|
|
|
|
|
- return <React.Fragment></React.Fragment>;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
const { pages } = this.state;
|
|
const { pages } = this.state;
|
|
|
|
|
|
|
|
if (pages == null) {
|
|
if (pages == null) {
|