gab-social/app/javascript/gabsocial/pages/news_page.js
mgabdev 38a4f1ed7f Updated WhoToFollowPanel to be UserSuggestionsPanel and included related, verified
• Updated:
- WhoToFollowPanel to be UserSuggestionsPanel and included related, verified
- All pages, layouts to use new component

• Removed:
- VerifiedAccountsPanel
2020-09-01 11:54:01 -05:00

47 lines
1.0 KiB
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 WrappedBundle from '../features/ui/util/wrapped_bundle'
import {
LinkFooter,
ProgressPanel,
ShopPanel,
SignUpPanel,
UserSuggestionsPanel,
} 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
noRightSidebar
layout={[
SignUpPanel,
ProgressPanel,
<WrappedBundle component={UserSuggestionsPanel} componentParams={{ suggestionType: 'verified' }} />,
ShopPanel,
LinkFooter,
]}
>
<PageTitle path={title} />
{children}
</DefaultLayout>
)
}
}
NewsPage.propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string.isRequired,
}
export default NewsPage