Skip to content

Commit

Permalink
Loosen PluginComponents PropType requirement for WindowTopBarPluginMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
marlo-longley committed Feb 6, 2025
1 parent 6e15d9f commit 6239946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/WindowTopBarPluginMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export function WindowTopBarPluginMenu({

if (!PluginComponents || PluginComponents.length === 0) return null;

console.log(PluginComponents[0]);

return (
<>
<MiradorMenuButton
Expand Down Expand Up @@ -72,8 +74,6 @@ WindowTopBarPluginMenu.propTypes = {
container: PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
menuIcon: PropTypes.element,
open: PropTypes.bool,
PluginComponents: PropTypes.arrayOf(
PropTypes.node,
),
PluginComponents: PropTypes.array, // eslint-disable-line react/forbid-prop-types
windowId: PropTypes.string.isRequired,
};

0 comments on commit 6239946

Please sign in to comment.