Skip to content

Commit

Permalink
Change DropdownMenu component's items prop type (mastodon#31263)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Aug 2, 2024
1 parent 2a704ad commit bb3941f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/dropdown_menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let id = 0;
class DropdownMenu extends PureComponent {

static propTypes = {
items: PropTypes.oneOfType([PropTypes.array, ImmutablePropTypes.list]).isRequired,
items: PropTypes.array.isRequired,
loading: PropTypes.bool,
scrollable: PropTypes.bool,
onClose: PropTypes.func.isRequired,
Expand Down Expand Up @@ -165,7 +165,7 @@ class Dropdown extends PureComponent {
children: PropTypes.node,
icon: PropTypes.string,
iconComponent: PropTypes.func,
items: PropTypes.oneOfType([PropTypes.array, ImmutablePropTypes.list]),
items: PropTypes.array.isRequired,
loading: PropTypes.bool,
size: PropTypes.number,
title: PropTypes.string,
Expand Down

0 comments on commit bb3941f

Please sign in to comment.