Skip to content

Commit

Permalink
fix(Carousel): rename unsafe lifecycles
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSharpieOne committed Oct 18, 2019
1 parent 87d28b6 commit 940438f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Carousel.js
Expand Up @@ -31,7 +31,7 @@ class Carousel extends React.Component {
document.addEventListener('keyup', this.handleKeyPress);
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.setInterval(nextProps);
// Calculate the direction to turn
if (this.props.activeIndex + 1 === nextProps.activeIndex) {
Expand Down

0 comments on commit 940438f

Please sign in to comment.