From f200d77e800eff322f0b3bc1baf38b3efcceb893 Mon Sep 17 00:00:00 2001 From: Vishal Baraiya <142961593+mr-baraiya@users.noreply.github.com> Date: Fri, 13 Mar 2026 19:07:57 +0000 Subject: [PATCH 1/3] chore(Page): update content PropTypes to reflect supported types --- src/components/Page/Page.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Page/Page.jsx b/src/components/Page/Page.jsx index 997b0ffae849..f452918e0d27 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, + then: PropTypes.func, + default: PropTypes.any, }), ]), }; From 9e3955a2e3b21f3fd8e83669498fdbdcfa89f392 Mon Sep 17 00:00:00 2001 From: Vishal Baraiya <142961593+mr-baraiya@users.noreply.github.com> Date: Sat, 14 Mar 2026 04:44:11 +0000 Subject: [PATCH 2/3] chore(Page): make content PropTypes stricter --- src/components/Page/Page.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Page/Page.jsx b/src/components/Page/Page.jsx index f452918e0d27..2da56b3d0d54 100644 --- a/src/components/Page/Page.jsx +++ b/src/components/Page/Page.jsx @@ -189,7 +189,7 @@ Page.propTypes = { PropTypes.shape({ // eslint-disable-next-line unicorn/no-thenable then: PropTypes.func, - default: PropTypes.any, + default: PropTypes.func, }), ]), }; From 11fa7a72621cfb20a9dfc3e0dec1549820fd1710 Mon Sep 17 00:00:00 2001 From: Vishal Baraiya <142961593+mr-baraiya@users.noreply.github.com> Date: Sat, 14 Mar 2026 13:13:08 +0000 Subject: [PATCH 3/3] chore(Page): make content PropTypes stricter --- src/components/Page/Page.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Page/Page.jsx b/src/components/Page/Page.jsx index 2da56b3d0d54..cb307fec2524 100644 --- a/src/components/Page/Page.jsx +++ b/src/components/Page/Page.jsx @@ -188,8 +188,8 @@ Page.propTypes = { PropTypes.func, PropTypes.shape({ // eslint-disable-next-line unicorn/no-thenable - then: PropTypes.func, - default: PropTypes.func, + then: PropTypes.func.isRequired, + default: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), }), ]), };