()
| 39 | } |
| 40 | |
| 41 | next() { |
| 42 | if (this.animating) return; |
| 43 | this.setState((prevState) => { |
| 44 | const nextIndex = |
| 45 | prevState.activeIndex === this.props.items.length - 1 |
| 46 | ? 0 |
| 47 | : prevState.activeIndex + 1; |
| 48 | return { activeIndex: nextIndex }; |
| 49 | }); |
| 50 | } |
| 51 | |
| 52 | previous() { |
| 53 | if (this.animating) return; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…