DocSpace-client/web/ASC.Web.Common/src/components/PageLayout/sub-components/section-body-content.js

24 lines
538 B
JavaScript
Raw Normal View History

import React from "react";
import PropTypes from "prop-types";
import isEqual from "lodash/isEqual";
class SectionBodyContent extends React.Component {
shouldComponentUpdate(nextProps) {
return !isEqual(this.props, nextProps);
}
render() {
const { children } = this.props;
//console.log("PageLayout SectionBodyContent render");
return <>{children}</>;
}
}
SectionBodyContent.displayName = "SectionBodyContent";
SectionBodyContent.propTypes = {
children: PropTypes.any,
};
export default SectionBodyContent;