Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
FreakDev committed Oct 25, 2017
1 parent 095ac39 commit 6b8eba9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/PageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,13 @@ 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)
);
let indexNext = pageOrder.findIndex(
findPage.bind(this, nextProps.location.pathname)
);

// indexCurrent = indexCurrent !== -1 ? indexCurrent : index404;
// indexNext = indexNext !== -1 ? indexNext : index404;

this.setState({
direction: indexNext - indexCurrent
});
Expand Down

0 comments on commit 6b8eba9

Please sign in to comment.