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

49 lines
973 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import PageTitle from '../features/ui/util/page_title'
import Block from '../components/block'
import DefaultLayout from '../layouts/default_layout'
import {
LinkFooter,
UserSuggestionsPanel,
} from '../features/ui/util/async_components'
class ModalPage extends React.PureComponent {
render() {
const {
children,
title,
page,
} = this.props
return (
<DefaultLayout
title={title}
page={page}
showBackBtn
layout={[
UserSuggestionsPanel,
LinkFooter,
]}
>
<PageTitle path={title} />
<Block>
<div className={[_s.d, _s.py15, _s.px15].join(' ')}>
{children}
</div>
</Block>
</DefaultLayout>
)
}
}
ModalPage.propTypes = {
title: PropTypes.string,
page: PropTypes.string,
children: PropTypes.node,
}
export default ModalPage