gab-social/app/javascript/gabsocial/pages/about_page.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

26 lines
535 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import PageTitle from '../features/ui/util/page_title'
import AboutLayout from '../layouts/about_layout'
class AboutPage extends React.PureComponent {
render() {
const { children, title } = this.props
return (
<AboutLayout title={title}>
<PageTitle path={title} />
{children}
</AboutLayout>
)
}
}
AboutPage.propTypes = {
title: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
}
export default AboutPage