Added title to NewsPage, NewsLayout

• Added:
- title to NewsPage, NewsLayout
This commit is contained in:
mgabdev
2020-11-09 01:33:15 -06:00
parent 2d1fdcf6fb
commit a614d3c5cd
3 changed files with 7 additions and 6 deletions

View File

@@ -6,11 +6,11 @@ import NewsLayout from '../layouts/news_layout'
class NewsPage extends React.PureComponent {
render() {
const { children } = this.props
const { children, title } = this.props
return (
<NewsLayout>
<PageTitle path='News' />
<NewsLayout title={title}>
<PageTitle path={title} />
{children}
</NewsLayout>
)