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

Version Path
lcms-engine-0.3.1 app/javascript/components/paginate/PageView.jsx
lcms-engine-0.1.4 app/javascript/components/paginate/PageView.jsx
lcms-engine-0.3.0 app/javascript/components/paginate/PageView.jsx
lcms-engine-0.1.3 app/javascript/components/paginate/PageView.jsx
lcms-engine-0.2.0 app/javascript/components/paginate/PageView.jsx
lcms-engine-0.1.2 app/javascript/components/paginate/PageView.jsx
lcms-engine-0.1.0 app/javascript/components/paginate/PageView.jsx