()
| 19 | } |
| 20 | |
| 21 | render () { |
| 22 | let sort = [], |
| 23 | onSort = null, |
| 24 | style = {}; |
| 25 | |
| 26 | if (this.props.sortAble) { |
| 27 | sort.push(<i key="up" className={classnames('arrow-up', {active: this.props.name === this.props.sort.name && this.state.asc === 1})} />); |
| 28 | sort.push(<i key="down" className={classnames('arrow-down', {active: this.props.name === this.props.sort.name && this.state.asc === 0})} />); |
| 29 | |
| 30 | onSort = this.onSort; |
| 31 | style = { cursor: 'pointer' }; |
nothing calls this directly
no outgoing calls
no test coverage detected