7e47bb1d9c
• Removed: - prop-types global import, added to files directly
23 lines
436 B
JavaScript
23 lines
436 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
/**
|
|
* Renders a block component
|
|
*/
|
|
export default class Block extends React.PureComponent {
|
|
|
|
static propTypes = {
|
|
children: PropTypes.any,
|
|
}
|
|
|
|
render() {
|
|
const { children } = this.props
|
|
|
|
return (
|
|
<div className={[_s.default, _s.boxShadowBlock, _s.bgPrimary, _s.overflowHidden, _s.radiusSmall].join(' ')}>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
} |