Skip to content

Commit

Permalink
Fix prop types for popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong committed Oct 21, 2020
1 parent 0501465 commit adfc22b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/react-components/room/PlacePopover.js
@@ -1,4 +1,5 @@
import React from "react";
import PropTypes from "prop-types";
import { ButtonGridPopover } from "../popover/ButtonGridPopover";
import { Popover } from "../popover/Popover";
import { ToolbarButton } from "../input/ToolbarButton";
Expand Down Expand Up @@ -34,5 +35,5 @@ export function PlacePopoverButton({ items }) {
}

PlacePopoverButton.propTypes = {
items: ButtonGridPopover.propTypes.items
items: PropTypes.array.isRequired
};
2 changes: 1 addition & 1 deletion src/react-components/room/PlacePopoverContainer.js
Expand Up @@ -81,5 +81,5 @@ PlacePopoverContainer.propTypes = {
hubChannel: PropTypes.object.isRequired,
scene: PropTypes.object.isRequired,
mediaSearchStore: PropTypes.object.isRequired,
pushHistoryState: PropTypes.object.isRequired
pushHistoryState: PropTypes.func.isRequired
};
11 changes: 1 addition & 10 deletions src/react-components/room/SharePopover.js
Expand Up @@ -57,14 +57,5 @@ export function SharePopoverButton({ items }) {
}

SharePopoverButton.propTypes = {
items: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.string.isRequired,
icon: PropTypes.elementType.isRequired,
color: PropTypes.string,
name: PropTypes.string.isRequired,
active: PropTypes.bool,
onSelect: PropTypes.func
})
).isRequired
items: PropTypes.array.isRequired
};

0 comments on commit adfc22b

Please sign in to comment.