Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TableCell definition #1386

Merged
merged 1 commit into from
Apr 6, 2017
Merged

Fix TableCell definition #1386

merged 1 commit into from
Apr 6, 2017

Conversation

priecint
Copy link
Contributor

@priecint priecint commented Apr 3, 2017

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 sortedof valueASCsupplied toThemedTableCell, expected one of ["asc","desc"].).

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"].`).
@javivelasco
Copy link
Member

Thank you!

@javivelasco javivelasco merged commit 991a430 into react-toolbox:dev Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants