Skip to content

Commit 5e50f0d

Browse files
committed
Require children in SegmentedButtonGroup/MenuItem
1 parent 12949e3 commit 5e50f0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/button/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const SegmentedButtonGroup = styled(Box).attrs(({ border }) => ({
174174
`;
175175

176176
SegmentedButtonGroup.propTypes = {
177-
children: PropTypes.arrayOf(elementOfType(Button)),
177+
children: PropTypes.arrayOf(elementOfType(Button)).isRequired,
178178
...Box.propTypes,
179179
};
180180

components/dropdown/dropdown-menu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ DropdownMenu.propTypes = {
7878
elementOfType(MenuItemSecondaryText),
7979
elementOfType(MenuItemTitle),
8080
]),
81-
),
81+
).isRequired,
8282
...Popover.propTypes,
8383
};

0 commit comments

Comments
 (0)