Skip to content

Commit 5a1d5f1

Browse files
Fix typescript type name typo in DataTableManager component (#2154)
* refactor(data-table-manager): fix type name typo * chore(data-table-manager): changeset added * chore(data-table-manager): improve changeset message Co-authored-by: Nicola Molinari <[email protected]> Co-authored-by: Nicola Molinari <[email protected]>
1 parent 87b45d4 commit 5a1d5f1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/funny-penguins-design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@commercetools-uikit/data-table-manager': patch
3+
---
4+
5+
Fix name typo for `TColumnProps` type.

packages/components/data-table-manager/src/data-table-manager.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface TRow {
1414
id: string;
1515
}
1616

17-
export type TColumProps = {
17+
export type TColumnProps = {
1818
/**
1919
* The unique key of the column that is used to identify your data type.
2020
* You can use this value to determine which value from a row item should be rendered.
@@ -108,7 +108,7 @@ type TDataTableManagerProps = {
108108
* The list of columns to be rendered.
109109
* Each column can be customized (see properties below).
110110
*/
111-
columns: TColumProps[];
111+
columns: TColumnProps[];
112112

113113
/**
114114
* Any React node. Usually you want to render the `<DataTable>` component.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export type { TRow, TColumProps } from './data-table-manager';
1+
export type { TRow, TColumnProps } from './data-table-manager';

0 commit comments

Comments
 (0)