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

Export FieldErrors component #371

Merged
merged 2 commits into from
Dec 28, 2018
Merged

Export FieldErrors component #371

merged 2 commits into from
Dec 28, 2018

Conversation

dferber90
Copy link
Contributor

@dferber90 dferber90 commented Dec 27, 2018

  • exports the FieldErrors component
  • adds FieldErrors.errorTypes constants which aim to make code of consumers easier to follow by avoiding "magic" keys like missing in the errors object by showing the constants instead (non-breaking change)
  • adds react-testing-library tests for the public API
  • adds README

I didn't add a story as this component doesn't have any visuals itself (apart from rendering ErrorMessage which is already tested separately).

Closes #246

@dferber90 dferber90 changed the title Export field errors Export FieldErrors component Dec 27, 2018
@dferber90 dferber90 force-pushed the df-export-field-errors branch from 55e8288 to 0b3e188 Compare December 27, 2018 14:35
Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

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

💯

Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

Nifty.

@dferber90 dferber90 merged commit 1f2b894 into master Dec 28, 2018
@dferber90 dferber90 deleted the df-export-field-errors branch December 28, 2018 11:18
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.

4 participants