Skip to content

Commit b2549b4

Browse files
authored
Merge pull request #4600 from mananjadhav/fix/avatar-props-error
Updated propType for Avatar containerStyles in Workspace
2 parents 9f73a02 + e2a72bf commit b2549b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Avatar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const propTypes = {
1212
imageStyles: PropTypes.arrayOf(PropTypes.object),
1313

1414
/** Extra styles to pass to View wrapper */
15-
containerStyles: PropTypes.arrayOf(PropTypes.object),
15+
containerStyles: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
1616

1717
/** Set the size of Avatar */
1818
size: PropTypes.oneOf(['default', 'small']),

0 commit comments

Comments
 (0)