Skip to content

Commit

Permalink
fix(TextInput): add displayName so that deprecation warning message i…
Browse files Browse the repository at this point in the history
…s correctly formatted (#9460)

* chore: add displayName to TextInput

* fix(Tearsheet): update public API snapshot

Co-authored-by: TJ Egan <tw15egan@gmail.com>
  • Loading branch information
dcwarwick and tw15egan committed Aug 26, 2021
1 parent 44ba5da commit 6aefdec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6098,6 +6098,7 @@ Map {
"warn": false,
"warnText": "",
},
"displayName": "TextInput",
"propTypes": Object {
"className": Object {
"type": "string",
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const TextInput = React.forwardRef(function TextInput(
);
});

TextInput.displayName = 'TextInput';
TextInput.PasswordInput = PasswordInput;
TextInput.ControlledPasswordInput = ControlledPasswordInput;
TextInput.propTypes = {
Expand Down

0 comments on commit 6aefdec

Please sign in to comment.