@campxdev/shared 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
StyledChevronIcon,
|
|
16
16
|
StyledListItemButton,
|
|
17
17
|
} from './ListItemButton'
|
|
18
|
-
const accessIfNoKey = process.env.NODE_ENV === 'development' ?
|
|
18
|
+
const accessIfNoKey = process.env.NODE_ENV === 'development' ? false : false
|
|
19
|
+
|
|
19
20
|
const StyledLink = styled(Link)({
|
|
20
21
|
textDecoration: 'none',
|
|
21
22
|
})
|
|
@@ -100,11 +101,7 @@ const DropDownMenu = ({path, title, icon, menuItems, permissionKey}) => {
|
|
|
100
101
|
return arr.includes(true)
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
const dropdownAccess = menuItems?.length
|
|
106
|
-
? validateDropdownAccess()
|
|
107
|
-
: hasAccess
|
|
104
|
+
const dropdownAccess = validateDropdownAccess()
|
|
108
105
|
|
|
109
106
|
if (!dropdownAccess) return null
|
|
110
107
|
return (
|