gab-social/app/javascript/gabsocial/pages/modal_page.js
mgabdev 06d85fe8d8 Added functionality to pages, layout for use with sidebar promotions
• Added:
- functionality to pages, layout for use with sidebar promotions

• Updated:
- pages, layouts to use StatusPromotionPanel
2020-07-15 23:05:08 -05:00

37 lines
826 B
JavaScript

import PageTitle from '../features/ui/util/page_title'
import LinkFooter from '../components/link_footer'
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
import DefaultLayout from '../layouts/default_layout'
export default class ModalPage extends PureComponent {
static propTypes = {
title: PropTypes.string,
page: PropTypes.string,
children: PropTypes.node,
}
render() {
const {
children,
title,
page,
} = this.props
return (
<DefaultLayout
title={title}
page={page}
layout={[
<WhoToFollowPanel key='modal-page-wtf-panel' />,
<LinkFooter key='search-page-link-footer' />,
]}
showBackBtn
>
<PageTitle path={title} />
{children}
</DefaultLayout>
)
}
}