DocSpace-client/packages/asc-web-common/components/PageLayout/sub-components/section-body-content.js

24 lines
541 B
JavaScript
Raw Normal View History

import React from "react";
import PropTypes from "prop-types";
import equal from "fast-deep-equal/react";
class SectionBodyContent extends React.Component {
shouldComponentUpdate(nextProps) {
return !equal(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;