gab-social/app/javascript/gabsocial/pages/news_page.js
mgabdev a614d3c5cd Added title to NewsPage, NewsLayout
• Added:
- title to NewsPage, NewsLayout
2020-11-09 01:33:15 -06:00

26 lines
528 B
JavaScript

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