gab-social/app/javascript/gabsocial/layouts/default_layout.js
mgabdev 7e47bb1d9c Removed prop-types global import, added to files directly
• Removed:
- prop-types global import, added to files directly
2020-08-17 15:59:29 -05:00

50 lines
989 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import Layout from './layout'
class DefaultLayout extends React.PureComponent {
render() {
const {
actions,
children,
layout,
noComposeButton,
noRightSidebar,
page,
showBackBtn,
tabs,
title,
} = this.props
return (
<Layout
actions={actions}
layout={layout}
noComposeButton={noComposeButton}
noRightSidebar={noRightSidebar}
page={page}
showBackBtn={showBackBtn}
tabs={tabs}
title={title}
>
{children}
</Layout>
)
}
}
DefaultLayout.propTypes = {
actions: PropTypes.array,
children: PropTypes.node.isRequired,
layout: PropTypes.object,
noComposeButton: PropTypes.bool,
noRightSidebar: PropTypes.bool,
page: PropTypes.string,
showBackBtn: PropTypes.bool,
tabs: PropTypes.array,
title: PropTypes.string.isRequired,
}
export default DefaultLayout