From e2249b24d5ea8062456256a0d425875046a66800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Thu, 19 Sep 2024 09:48:02 -0300 Subject: [PATCH] fix: add defaultProps to containerProps --- src/studio-header/HeaderBody.jsx | 3 ++- src/studio-header/StudioHeader.jsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/studio-header/HeaderBody.jsx b/src/studio-header/HeaderBody.jsx index 3f736d38f..2afe32426 100644 --- a/src/studio-header/HeaderBody.jsx +++ b/src/studio-header/HeaderBody.jsx @@ -164,7 +164,7 @@ HeaderBody.propTypes = { })), outlineLink: PropTypes.string, searchButtonAction: PropTypes.func, - containerProps: Container.propTypes, + containerProps: PropTypes.shape(Container.propTypes), }; HeaderBody.defaultProps = { @@ -184,6 +184,7 @@ HeaderBody.defaultProps = { mainMenuDropdowns: [], outlineLink: null, searchButtonAction: null, + containerProps: {}, }; export default HeaderBody; diff --git a/src/studio-header/StudioHeader.jsx b/src/studio-header/StudioHeader.jsx index 4d55792ec..adb56973b 100644 --- a/src/studio-header/StudioHeader.jsx +++ b/src/studio-header/StudioHeader.jsx @@ -71,6 +71,7 @@ StudioHeader.propTypes = { StudioHeader.defaultProps = { number: '', org: '', + containerProps: {}, isHiddenMainMenu: false, mainMenuDropdowns: [], outlineLink: null,