gab-social/app/javascript/gabsocial/components/block_heading.js
mgabdev 7e47bb1d9c Removed prop-types global import, added to files directly
• Removed:
- prop-types global import, added to files directly
2020-08-17 15:59:29 -05:00

23 lines
521 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import Heading from './heading'
export default class BlockHeading extends React.PureComponent {
static propTypes = {
title: PropTypes.string.isRequired,
}
render() {
const { title } = this.props
return (
<div className={[_s.default, _s.px15, _s.py10].join(' ')}>
<div className={[_s.default, _s.flexRow, _s.alignItemsCenter].join(' ')}>
<Heading size='h2'>{title}</Heading>
</div>
</div>
)
}
}