Fix TableCell definition (#1386)

As per source (https://github.com/react-toolbox/react-toolbox/blob/dev/components/table/TableCell.js#L7) `sorted` accepts lower-case strings but the TypeScript definition uses upper-case. So there is either error from TS (`TS2322:Type 'string' is not assignable to type '"ASC" | "DESC"'`) or React (`Warning: Failed prop type: Invalid prop `sorted` of value `ASC` supplied to `ThemedTableCell`, expected one of ["asc","desc"].`).
old
priecint 2017-04-06 09:52:54 +02:00 committed by Javi Velasco
parent 4cc87db89f
commit 991a430ca2
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export interface TableCellProps extends ReactToolbox.Props {
/**
* If you provide a value the cell will show an arrow pointing down or up depending on the value to indicate it is a sorted element. Useful only for columns.
*/
sorted?: 'ASC' | 'DESC';
sorted?: 'asc' | 'desc';
/**
* The element tag, either `td` or `th`.
* @default 'td'