2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-07-02 02:40:00 +01:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl'
|
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
|
|
|
import DefaultLayout from '../layouts/default_layout'
|
2020-09-01 17:54:01 +01:00
|
|
|
import WrappedBundle from '../features/ui/util/wrapped_bundle'
|
2020-08-12 23:52:46 +01:00
|
|
|
import {
|
|
|
|
LinkFooter,
|
2020-09-01 17:54:01 +01:00
|
|
|
UserSuggestionsPanel,
|
2020-08-12 23:52:46 +01:00
|
|
|
ProgressPanel,
|
|
|
|
} from '../features/ui/util/async_components'
|
2020-07-02 02:40:00 +01:00
|
|
|
|
2020-08-17 21:07:16 +01:00
|
|
|
class ProPage extends React.PureComponent {
|
2020-07-02 02:40:00 +01:00
|
|
|
|
|
|
|
render() {
|
|
|
|
const { intl, children } = this.props
|
|
|
|
|
|
|
|
const title = intl.formatMessage(messages.title)
|
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
2020-12-24 06:19:20 +00:00
|
|
|
showBackBtn
|
2020-07-02 02:40:00 +01:00
|
|
|
title={title}
|
2020-07-16 05:05:08 +01:00
|
|
|
page='pro'
|
|
|
|
layout={[
|
2020-08-12 23:52:46 +01:00
|
|
|
ProgressPanel,
|
2020-09-01 17:54:01 +01:00
|
|
|
<WrappedBundle component={UserSuggestionsPanel} componentParams={{ suggestionType: 'verified' }} />,
|
2020-08-12 23:52:46 +01:00
|
|
|
LinkFooter,
|
2020-07-16 05:05:08 +01:00
|
|
|
]}
|
2020-07-02 02:40:00 +01:00
|
|
|
>
|
|
|
|
<PageTitle path={title} />
|
|
|
|
{children}
|
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
2020-08-14 18:45:59 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
title: { 'id': 'column.pro', 'defaultMessage': 'Pro feed' },
|
|
|
|
})
|
|
|
|
|
|
|
|
ProPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default injectIntl(ProPage)
|