gab-social/app/javascript/gabsocial/layouts/news_layout.js
mgabdev 90528b4b41 Added NewsLayout
• Added:
- NewsLayout
2020-11-06 23:32:39 -06:00

53 lines
1.1 KiB
JavaScript

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'
title='News'
>
<div className={[_s.d, _s.flexRow, _s.w100PC].join(' ')}>
{children}
</div>
</Layout>
)
}
}
NewsLayout.propTypes = {
children: PropTypes.node,
}
export default NewsLayout