diff --git a/src/PageManager.js b/src/PageManager.js index bd627c1..af2418f 100644 --- a/src/PageManager.js +++ b/src/PageManager.js @@ -21,8 +21,6 @@ export class PageManager extends Component { }; const pageOrder = React.Children.map(this.props.children, (child) => child.props.path) - console.log(pageOrder) - let indexCurrent = pageOrder.findIndex( findPage.bind(this, this.props.location.pathname) ); @@ -30,9 +28,6 @@ export class PageManager extends Component { findPage.bind(this, nextProps.location.pathname) ); - // indexCurrent = indexCurrent !== -1 ? indexCurrent : index404; - // indexNext = indexNext !== -1 ? indexNext : index404; - this.setState({ direction: indexNext - indexCurrent });