gab-social/app/javascript/gabsocial/layouts/default_layout.js

48 lines
922 B
JavaScript
Raw Normal View History

2020-04-11 23:29:19 +01:00
import Layout from './layout'
2020-02-04 15:50:18 +00:00
class DefaultLayout extends PureComponent {
2020-02-04 15:50:18 +00:00
render() {
2020-04-11 23:29:19 +01:00
const {
2020-05-03 06:22:49 +01:00
actions,
2020-04-11 23:29:19 +01:00
children,
layout,
noComposeButton,
noRightSidebar,
page,
2020-05-03 06:22:49 +01:00
showBackBtn,
2020-04-11 23:29:19 +01:00
tabs,
2020-05-03 06:22:49 +01:00
title,
} = this.props
2020-03-25 03:08:43 +00:00
2020-02-04 15:50:18 +00:00
return (
2020-04-11 23:29:19 +01:00
<Layout
actions={actions}
layout={layout}
noComposeButton={noComposeButton}
noRightSidebar={noRightSidebar}
page={page}
2020-05-03 06:22:49 +01:00
showBackBtn={showBackBtn}
tabs={tabs}
title={title}
2020-04-11 23:29:19 +01:00
>
{children}
</Layout>
2020-02-04 15:50:18 +00:00
)
}
}
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