2020-11-07 05:32:39 +00:00
|
|
|
import React from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
|
|
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
|
|
|
import { me } from '../initial_state'
|
|
|
|
import {
|
|
|
|
CX,
|
|
|
|
BREAKPOINT_EXTRA_SMALL,
|
|
|
|
} from '../constants'
|
|
|
|
import Layout from './layout'
|
|
|
|
import Responsive from '../features/ui/util/responsive_component'
|
|
|
|
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component'
|
|
|
|
|
|
|
|
class NewsLayout extends ImmutablePureComponent {
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const {
|
|
|
|
children,
|
|
|
|
showBackBtn,
|
|
|
|
title,
|
|
|
|
} = this.props
|
|
|
|
|
|
|
|
const mainBlockClasses = CX({
|
|
|
|
d: 1,
|
|
|
|
w1015PX: 1,
|
|
|
|
h100PC: 1,
|
|
|
|
flexRow: 1,
|
|
|
|
jcEnd: 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Layout
|
|
|
|
showBackBtn
|
|
|
|
showGlobalFooter
|
|
|
|
noRightSidebar
|
|
|
|
showLinkFooterInSidebar
|
|
|
|
page='news'
|
2020-11-09 07:33:15 +00:00
|
|
|
title={title}
|
2020-11-07 05:32:39 +00:00
|
|
|
>
|
|
|
|
<div className={[_s.d, _s.flexRow, _s.w100PC].join(' ')}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</Layout>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
NewsLayout.propTypes = {
|
|
|
|
children: PropTypes.node,
|
2020-11-09 07:33:15 +00:00
|
|
|
title: PropTypes.string.isRequired,
|
2020-11-07 05:32:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default NewsLayout
|