7e47bb1d9c
• Removed: - prop-types global import, added to files directly
49 lines
971 B
JavaScript
49 lines
971 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,
|
|
WhoToFollowPanel,
|
|
} 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={[
|
|
WhoToFollowPanel,
|
|
LinkFooter,
|
|
]}
|
|
>
|
|
<PageTitle path={title} />
|
|
|
|
<Block>
|
|
<div className={[_s.default, _s.py15, _s.px15].join(' ')}>
|
|
{children}
|
|
</div>
|
|
</Block>
|
|
</DefaultLayout>
|
|
)
|
|
}
|
|
|
|
}
|
|
|
|
ModalPage.propTypes = {
|
|
title: PropTypes.string,
|
|
page: PropTypes.string,
|
|
children: PropTypes.node,
|
|
}
|
|
|
|
export default ModalPage |