chore(webhooks/EditView)

This commit is contained in:
Jamie Howard 2023-05-22 16:15:38 +01:00
parent 900c8b351f
commit 9719eaff96

View File

@ -141,9 +141,14 @@ const Headers = ({ getHeaders = getCEHeaders, isDraftAndPublish = false }) => {
);
};
Headers.defaultProps = {
getHeaders: getCEHeaders,
isDraftAndPublish: false,
};
Headers.propTypes = {
getHeaders: PropTypes.func.isRequired,
isDraftAndPublish: PropTypes.bool.isRequired,
getHeaders: PropTypes.func,
isDraftAndPublish: PropTypes.bool,
};
const Body = ({ providedEvents, isDraftAndPublish }) => {
@ -203,11 +208,12 @@ const Body = ({ providedEvents, isDraftAndPublish }) => {
Body.defaultProps = {
providedEvents: null,
isDraftAndPublish: false,
};
Body.propTypes = {
providedEvents: PropTypes.object,
isDraftAndPublish: PropTypes.bool.isRequired,
isDraftAndPublish: PropTypes.bool,
};
/**