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

45 lines
911 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import PageTitle from '../features/ui/util/page_title'
import DefaultLayout from '../layouts/default_layout'
import {
LinkFooter,
ProgressPanel,
ShopPanel,
SignUpPanel,
VerifiedAccountsPanel,
} from '../features/ui/util/async_components'
class NewsPage extends React.PureComponent {
render() {
const { children, title } = this.props
return (
<DefaultLayout
page='news'
title={title}
noComposeButton
showBackBtn
layout={[
SignUpPanel,
ProgressPanel,
VerifiedAccountsPanel,
ShopPanel,
LinkFooter,
]}
>
<PageTitle path={title} />
{children}
</DefaultLayout>
)
}
}
NewsPage.propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string.isRequired,
}
export default NewsPage