Skip to content

Commit fc7c648

Browse files
committed
✏️ Fix Typo
1 parent be40cc0 commit fc7c648

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@crystallize/reactjs-components",
33
"license": "MIT",
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"author": "Crystallize <[email protected]> (https://crystallize.com)",
66
"contributors": [
77
"Håkon Krogh <[email protected]>",

src/grid/RowCol.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const RowCol: FunctionComponent<RowColGridProps> = ({
2525
)}`}
2626
>
2727
{row.map((cell: GridCell, cellIndex: number) => {
28-
const cellStyles = styleForCell ? styleForCell(cell.data, {}) || {} : {};
28+
const cellStyles = styleForCell ? styleForCell(cell, {}) || {} : {};
2929
const classes = getPositionnableCellClassNames(cell, dimensions);
3030
return (
3131
<div

src/grid/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const Table: FunctionComponent<TableGridProps> = ({
3030
className={getPositionnablRowClassNames({ rowIndex }, dimensions)}
3131
>
3232
{row.map((cell: GridCell, cellIndex: number) => {
33-
const cellStyles = styleForCell ? styleForCell(cell.data, {}) || {} : {};
33+
const cellStyles = styleForCell ? styleForCell(cell, {}) || {} : {};
3434
const classes = getPositionnableCellClassNames(cell, dimensions);
3535
return (
3636
<td

src/grid/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export type GridCell = {
2020
rowspan: number;
2121
colspan: number;
2222
};
23-
data: any;
2423
};
2524

2625
export type GridPosition = {

0 commit comments

Comments
 (0)