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

String sorting comparators fixed to use selected locale. #110

Merged
merged 4 commits into from
Oct 23, 2017

Conversation

krulis-martin
Copy link
Member

No description provided.

@@ -94,7 +95,8 @@ AttachedFilesTable.propTypes = {
newFiles: ImmutablePropTypes.list,
addFiles: PropTypes.func,
HeaderComponent: PropTypes.func.isRequired,
RowComponent: PropTypes.func.isRequired
RowComponent: PropTypes.func.isRequired,
intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired }).isRequired
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you don't use function intl.formatMessage() here, so there is no need to check its existence in prop types. Instead, you use a intl.locale, so you can check this in here. I'm not sure about the type, but I think it is a string. To sum up, you probably wanted something like

intl: PropTypes.shape({ locale: PropTypes.string.isRequired }).isRequired

@SemaiCZE SemaiCZE merged commit 170fcab into master Oct 23, 2017
@SemaiCZE SemaiCZE deleted the string-sorting-locales branch October 23, 2017 06:11
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.

None yet

2 participants