@campxdev/shared 1.11.7-0.alpha.54 → 1.11.7-0.alpha.55

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.11.7-0.alpha.54",
3
+ "version": "1.11.7-0.alpha.55",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -205,11 +205,11 @@ export default function ReactTable({
205
205
  />
206
206
  <Table sx={{ position: 'relative' }} {...getTableProps()}>
207
207
  <TableHead>
208
- {headerGroups.map((headerGroup, index) => (
209
- <TableRow key={index} {...headerGroup.getHeaderGroupProps()}>
208
+ {headerGroups.map((headerGroup, rowIndex) => (
209
+ <TableRow key={rowIndex} {...headerGroup.getHeaderGroupProps()}>
210
210
  {showSerialNumber && <TableCell>S. No.</TableCell>}
211
- {headerGroup.headers.map((column: any, index) => (
212
- <TableCell key={index} {...column.getHeaderProps()}>
211
+ {headerGroup.headers.map((column: any, colIndex) => (
212
+ <TableCell key={colIndex} {...column.getHeaderProps()}>
213
213
  {column.render('Header')}
214
214
  {column.sort && (
215
215
  <IconButton onClick={() => handleSortClick(column.id)}>