Skip to content

Commit e2249b2

Browse files
committed
fix: add defaultProps to containerProps
1 parent ce107bf commit e2249b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/studio-header/HeaderBody.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ HeaderBody.propTypes = {
164164
})),
165165
outlineLink: PropTypes.string,
166166
searchButtonAction: PropTypes.func,
167-
containerProps: Container.propTypes,
167+
containerProps: PropTypes.shape(Container.propTypes),
168168
};
169169

170170
HeaderBody.defaultProps = {
@@ -184,6 +184,7 @@ HeaderBody.defaultProps = {
184184
mainMenuDropdowns: [],
185185
outlineLink: null,
186186
searchButtonAction: null,
187+
containerProps: {},
187188
};
188189

189190
export default HeaderBody;

src/studio-header/StudioHeader.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ StudioHeader.propTypes = {
7171
StudioHeader.defaultProps = {
7272
number: '',
7373
org: '',
74+
containerProps: {},
7475
isHiddenMainMenu: false,
7576
mainMenuDropdowns: [],
7677
outlineLink: null,

0 commit comments

Comments
 (0)