From c743b388bfa3575cb78e368f418684156cf82850 Mon Sep 17 00:00:00 2001 From: Adam Bottega Date: Thu, 1 Aug 2024 16:17:36 +1000 Subject: [PATCH] fixed Popover issues --- lib/components/SideNav/NavItem.js | 9 ++++++--- lib/components/SideNav/index.js | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/components/SideNav/NavItem.js b/lib/components/SideNav/NavItem.js index 36d484f1..eba2a01a 100644 --- a/lib/components/SideNav/NavItem.js +++ b/lib/components/SideNav/NavItem.js @@ -198,7 +198,8 @@ const NavItem = ({ Component, isActive, handleItemClick, - navItemRefs + navItemRefs, + isSmallScreen }) => { // Use the ternary operator to render the appropriate component based on actionType const accessibilityProps = { @@ -212,8 +213,9 @@ const NavItem = ({ @@ -252,7 +254,8 @@ NavItem.propTypes = { Component: PropTypes.elementType, isActive: PropTypes.bool, handleItemClick: PropTypes.func, - navItemRefs: PropTypes.object + navItemRefs: PropTypes.object, + isSmallScreen: PropTypes.bool }; export default NavItem; diff --git a/lib/components/SideNav/index.js b/lib/components/SideNav/index.js index 746131a5..37abe0a4 100644 --- a/lib/components/SideNav/index.js +++ b/lib/components/SideNav/index.js @@ -236,6 +236,7 @@ const SideNav = ({ items, sideNavHeight }) => {