Sha256: 913d14d2bfadcf06b8d3c313cae9717f12662994b0548fd6ccc55d9ad254bced

Contents?: true

Size: 563 Bytes

Versions: 12

Compression:

Stored size: 563 Bytes

Contents

Rev.registerComponent('BlockGrid', class BlockGrid extends React.Component {

  buildClassName() {
    const classes = {
      'RevBlockGrid': true,
    }

    const addNum = (propName) => {
      const prop = this.props[propName]

      if(prop) {
        classes[`${propName}-block-grid-${prop}`] = true
      }
    }

    addNum('small')
    addNum('medium')
    addNum('large')

    return this.classAdd(classes)
  }

  render() {
    console.warn('BlockGrid is deprecated.')
    return <ul className={this.buildClassName()}>{this.props.children}</ul>
  }
})

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
revelry_core-0.1.24.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.23.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.22.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.21.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.20.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.19.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.18.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.17.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.16.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.15.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.14.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6
revelry_core-0.1.13.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.es6