Skip to content

Commit

Permalink
Require children in SegmentedButtonGroup/MenuItem
Browse files Browse the repository at this point in the history
  • Loading branch information
TyMick committed Jan 9, 2021
1 parent 12949e3 commit 5e50f0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const SegmentedButtonGroup = styled(Box).attrs(({ border }) => ({
`;

SegmentedButtonGroup.propTypes = {
children: PropTypes.arrayOf(elementOfType(Button)),
children: PropTypes.arrayOf(elementOfType(Button)).isRequired,
...Box.propTypes,
};

Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/dropdown-menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ DropdownMenu.propTypes = {
elementOfType(MenuItemSecondaryText),
elementOfType(MenuItemTitle),
]),
),
).isRequired,
...Popover.propTypes,
};

0 comments on commit 5e50f0d

Please sign in to comment.