@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -15,7 +15,8 @@ import {
15
15
  StyledChevronIcon,
16
16
  StyledListItemButton,
17
17
  } from './ListItemButton'
18
- const accessIfNoKey = process.env.NODE_ENV === 'development' ? true : false
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 hasAccess = permissionKey ? permissions[permissionKey] : accessIfNoKey
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 (