mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
chore(webhooks/EditView)
This commit is contained in:
parent
900c8b351f
commit
9719eaff96
@ -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,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user