(children)
| 71 | }, |
| 72 | |
| 73 | makeCarouselItem(children){ |
| 74 | const {baseWidth, index} = this.state; |
| 75 | let itemNodes = []; |
| 76 | |
| 77 | let _len = React.Children.count(children); |
| 78 | |
| 79 | for(let i = -1; i <= _len; i++){ |
| 80 | let _index = i; |
| 81 | let active = index === i ? '_active': ''; |
| 82 | if (_index === -1) _index = _len - 1; |
| 83 | if (_index === _len) _index = 0; |
| 84 | |
| 85 | itemNodes.push(<div key={`carousel-item-${i}`} |
| 86 | style={{'width': baseWidth}} |
| 87 | className={`_item ${active}`}> |
| 88 | {children[_index]} |
| 89 | </div>); |
| 90 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…