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-04-11 23:29:19 +01:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl'
|
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
2020-03-25 03:08:43 +00:00
|
|
|
import DefaultLayout from '../layouts/default_layout'
|
2020-08-12 23:52:46 +01:00
|
|
|
import {
|
|
|
|
LinkFooter,
|
2020-08-13 00:39:50 +01:00
|
|
|
GroupsPanel,
|
2020-08-12 23:52:46 +01:00
|
|
|
ProgressPanel,
|
2020-11-07 05:19:04 +00:00
|
|
|
TrendsBreakingPanel,
|
2020-09-01 17:54:01 +01:00
|
|
|
UserSuggestionsPanel,
|
2020-08-12 23:52:46 +01:00
|
|
|
} from '../features/ui/util/async_components'
|
2020-03-25 03:08:43 +00:00
|
|
|
|
2020-08-17 21:07:16 +01:00
|
|
|
class CommunityPage extends React.PureComponent {
|
2020-03-25 03:08:43 +00:00
|
|
|
|
|
|
|
render() {
|
2020-08-14 18:45:59 +01:00
|
|
|
const { children, intl } = this.props
|
2020-04-11 23:29:19 +01:00
|
|
|
|
|
|
|
const title = intl.formatMessage(messages.community)
|
2020-03-25 03:08:43 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
2020-04-11 23:29:19 +01:00
|
|
|
title={title}
|
2020-07-16 05:05:08 +01:00
|
|
|
page='community'
|
|
|
|
layout={[
|
2020-08-12 23:52:46 +01:00
|
|
|
ProgressPanel,
|
2020-11-07 05:19:04 +00:00
|
|
|
TrendsBreakingPanel,
|
2020-09-01 17:54:01 +01:00
|
|
|
UserSuggestionsPanel,
|
2020-08-13 00:39:50 +01:00
|
|
|
GroupsPanel,
|
2020-08-12 23:52:46 +01:00
|
|
|
LinkFooter,
|
2020-07-16 05:05:08 +01:00
|
|
|
]}
|
2020-03-25 03:08:43 +00:00
|
|
|
>
|
2020-04-11 23:29:19 +01:00
|
|
|
<PageTitle path={title} />
|
2020-03-25 03:08:43 +00:00
|
|
|
{children}
|
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
2020-08-14 18:45:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
community: { 'id': 'column.community', 'defaultMessage': 'Community feed' },
|
|
|
|
})
|
|
|
|
|
|
|
|
CommunityPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
dispatch: PropTypes.func.isRequired,
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
}
|
|
|
|
|
2020-12-16 07:39:07 +00:00
|
|
|
export default injectIntl(CommunityPage)
|