Skip to content

Conversation

@dragfire
Copy link

@dragfire dragfire commented May 21, 2017

When inspecting the component in React Dev Tools, it is displayed as <Unknown /> Component, which is kind of annoying.
So this PR fixes this issue.

Description

displayName is added

Motivation and Context

Displaying <Unknown /> instead of <DateTime /> doesn't look good.

Checklist

[x] I have added tests covering my changes
[x] All new and existing tests pass
[ ] My changes required the documentation to be updated
  [ ] I have updated the documentation accordingly
  [ ] I have updated the TypeScript 1.8 type definitions accordingly
  [ ] I have updated the TypeScript 2.0+ type definitions accordingly

When inspecting the component in React Dev Tools, it is displayed as <Unknown /> Component, which is kind of annoying.
So this PR fixes this issue.
@simeg
Copy link
Collaborator

simeg commented Feb 1, 2018

Hi @dragfire and sorry for the delay. Your single commit has the changes from building this project, that is not necessary and I would like for you to remove it.

Can you confirm that this is still a problem? If so we could make this mergable and merge it.

@simeg
Copy link
Collaborator

simeg commented Feb 11, 2018

Thanks for this @dragfire. I'll push this change in a separate PR, due to the inability to merge this PR.

@simeg simeg closed this Feb 11, 2018
simeg added a commit that referenced this pull request Feb 11, 2018
simeg added a commit that referenced this pull request Feb 11, 2018
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