[Glitch] Change `DropdownMenu` component's `items` prop type

Port bb3941f885 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2804/head
Claire 2024-08-02 15:15:18 +02:00
parent 7946d986a7
commit a51cdd6b6d
1 changed files with 2 additions and 2 deletions

View File

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