Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change cells to items
Browse files Browse the repository at this point in the history
vineethasok committed Nov 7, 2023
1 parent 4183e00 commit f8ec719
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ interface TableCellType extends HTMLAttributes<HTMLTableCellElement> {
interface TableRowType
extends Omit<HTMLAttributes<HTMLTableRowElement>, "onSelect" | "id"> {
id: string | number;
cells: Array<TableCellType>;
items: Array<TableCellType>;
}

interface CommonTableProps
@@ -207,7 +207,7 @@ const TableBodyRow = ({
id,

headers,
cells,
items,
onSelect: onSelectProp,
isSelectable,
selectedIndices,
@@ -234,7 +234,7 @@ const TableBodyRow = ({
/>
</SelectData>
)}
{cells.map(({ label, ...cellProps }, cellIndex) => (
{items.map(({ label, ...cellProps }, cellIndex) => (
<TableData
key={`table-cell-${cellIndex}`}
{...cellProps}

0 comments on commit f8ec719

Please sign in to comment.