diff --git a/src/components/Page/Page.jsx b/src/components/Page/Page.jsx index 997b0ffae849..cb307fec2524 100644 --- a/src/components/Page/Page.jsx +++ b/src/components/Page/Page.jsx @@ -184,10 +184,12 @@ Page.propTypes = { next: PropTypes.object, pages: PropTypes.array, content: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.func, PropTypes.shape({ // eslint-disable-next-line unicorn/no-thenable then: PropTypes.func.isRequired, - default: PropTypes.string, + default: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), }), ]), };