gab-social/app/javascript/gabsocial/components/sidebar_section_title.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

24 lines
462 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import Text from './text'
export default class SidebarSectionTitle extends React.PureComponent {
static propTypes = {
children: PropTypes.string.isRequired,
}
render() {
const { children } = this.props
return (
<div className={[_s.default, _s.py5, _s.px10, _s.mt10].join(' ')}>
<Text color='tertiary'>
{children}
</Text>
</div>
)
}
}