Sha256: 9d01d02fd6b4bdb231b61e2c06a7076bd7169a9485d0d54584d3864a7504354e
Contents?: true
Size: 728 Bytes
Versions: 7
Compression:
Stored size: 728 Bytes
Contents
// from https://github.com/AdeleD/react-paginate (converted) import React from 'react' // eslint-disable-next-line no-unused-vars class PageView extends React.Component { render() { const linkClassName = this.props.pageLinkClassName let cssClassName = this.props.pageClassName if (this.props.selected) { if (typeof(cssClassName) !== 'undefined') { cssClassName = cssClassName + ' ' + this.props.activeClassName } else { cssClassName = this.props.activeClassName } } return ( <li className={cssClassName}> <a onClick={this.props.onClick} className={linkClassName}> {this.props.page} </a> </li> ) } } export default PageView
Version data entries
7 entries across 7 versions & 1 rubygems