Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dataDisplay/FixedIcon/fixedIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export const IconsWhite = (): React.ReactElement => {

return (
<Wrapper>
{iconsWhite.map((iconsWhite) => (
<GreenBoxColor key="index">
{iconsWhite.map((iconsWhite, index) => (
<GreenBoxColor key={index}>
<FixedIcon type={iconsWhite} />
{iconsWhite}
</GreenBoxColor>
Expand Down
21 changes: 9 additions & 12 deletions src/dataDisplay/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,18 @@ export const Table = ({
);

return (
<>
<React.Fragment key={row.id}>
<TableRow
hover
key={row.id}
selected={selectedRowIds.has(row.id)}
onClick={() => onRowClick(row.id)}>
{rowCells.map((c, index) => {
return (
<TableCell
key={c.id || index}
align={c.alignment || TableAlignment.left}>
{c.content}
</TableCell>
);
})}
{rowCells.map((c, index) => (
<TableCell
key={c.id || `cell${index}`}
align={c.alignment || TableAlignment.left}>
{c.content}
</TableCell>
))}
</TableRow>

{/* Collapsible content */}
Expand All @@ -177,7 +174,7 @@ export const Table = ({
</TableCell>
</TableRow>
)}
</>
</React.Fragment>
);
})}
</TableBody>
Expand Down
Loading