43e384554c
• Remove: - React, PureComponent global import and added those imports to files directly
49 lines
954 B
JavaScript
49 lines
954 B
JavaScript
import React from 'react'
|
|
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 |