From 679b6c3f9a424d19c9d75d676241a8757e6bef30 Mon Sep 17 00:00:00 2001 From: Alex Burgel Date: Fri, 28 Jan 2022 14:39:16 -0500 Subject: [PATCH] Fix compilation issues --- src/ui/ContextMenu/items/EmojiListItems.jsx | 4 ++-- src/ui/ContextMenu/items/MenuItems.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/ContextMenu/items/EmojiListItems.jsx b/src/ui/ContextMenu/items/EmojiListItems.jsx index 3c6d80777..5d27fe776 100644 --- a/src/ui/ContextMenu/items/EmojiListItems.jsx +++ b/src/ui/ContextMenu/items/EmojiListItems.jsx @@ -147,11 +147,11 @@ EmojiListItems.propTypes = { ]).isRequired, parentRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, parentContainRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, spaceFromTrigger: PropTypes.shape({ x: PropTypes.number, diff --git a/src/ui/ContextMenu/items/MenuItems.jsx b/src/ui/ContextMenu/items/MenuItems.jsx index c68ee1f75..c502ff8f0 100644 --- a/src/ui/ContextMenu/items/MenuItems.jsx +++ b/src/ui/ContextMenu/items/MenuItems.jsx @@ -140,11 +140,11 @@ MenuItems.propTypes = { // https://stackoverflow.com/a/51127130 parentRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, parentContainRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.instanceOf(PropTypes.element) }), ]).isRequired, openLeft: PropTypes.bool, };