()
| 50 | } |
| 51 | |
| 52 | previous() { |
| 53 | if (this.animating) return; |
| 54 | this.setState((prevState) => { |
| 55 | const nextIndex = |
| 56 | prevState.activeIndex === 0 |
| 57 | ? this.props.items.length - 1 |
| 58 | : prevState.activeIndex - 1; |
| 59 | return { activeIndex: nextIndex }; |
| 60 | }); |
| 61 | } |
| 62 | |
| 63 | goToIndex(newIndex) { |
| 64 | if (this.animating) return; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…