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