Skip to content

Conversation

@dmmcinty
Copy link

handling a TODO and updating the documentation

@dmmcinty dmmcinty requested a review from spruce-bruce April 10, 2018 22:56
@bobeagan bobeagan changed the base branch from master to release/v0.3.0 April 11, 2018 15:49
Copy link
Contributor

@spruce-bruce spruce-bruce left a comment

Choose a reason for hiding this comment

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

One change - and please add scott as a reviewer also

src/DropNCrop.js Outdated
className="dropzone-validation"
>
{value && value.error}
<p>{value && value.error[0]}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

When displaying multiple error messages like this it's more flexible to just loop through all the errors and output them.

{value && value.error && value.error.map(error => <p>{error}</p>}

Also we should have scott review this to make sure he's cool with multiple errors being displayed inside p tags here.

Choose a reason for hiding this comment

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

I think I'm okay with this? Would love to see what it looks like all validated out. @dmmcinty send me a screenshot ??

Copy link
Author

Choose a reason for hiding this comment

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

Updated the line

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