7e47bb1d9c
• Removed: - prop-types global import, added to files directly
23 lines
521 B
JavaScript
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>
|
|
)
|
|
}
|
|
|
|
} |