@campxdev/shared 1.4.21 → 1.4.23

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": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -120,13 +120,14 @@ const DropDownButton = ({
120
120
  >
121
121
  {menu.map((item, index) => (
122
122
  <RenderMenuItem
123
+ key={index}
123
124
  onModalOpen={() => onModalOpen(item)}
124
125
  modalState={modalState}
125
- key={index}
126
126
  handleClose={handleClose}
127
- label={item.label}
128
127
  actionType={item?.actionType}
128
+ label={item.label}
129
129
  onClick={item?.onClick}
130
+ link={item?.link}
130
131
  />
131
132
  ))}
132
133
  </StyledMenu>
@@ -91,8 +91,8 @@ export const RenderMenuItem = ({
91
91
  />
92
92
  ),
93
93
  link: (
94
- <StyledLink to={link?.to ?? ''} target={link.target ?? '_blank'}>
95
- <MenuItemButton onClick={() => {}} {...props} />
94
+ <StyledLink to={link?.to ?? ''} target={link?.target ?? '_blank'}>
95
+ <MenuItemButton {...props} onClick={() => {}} />
96
96
  </StyledLink>
97
97
  ),
98
98
  }