Skip to content

Commit

Permalink
Added userAlias to prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
wrigh393 committed Mar 22, 2021
1 parent 39ed274 commit 922d5d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MessageView/MessageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export default function MessageView({ datetime, userAlias, from_name, from_email
MessageView.propTypes = {
/** Name of message sender. */
"from_name": PropTypes.string,
/** Account alias of message sender. */
"userAlias": PropTypes.string,
/** Date the message was sent in ISO 8601 format. */
"datetime": PropTypes.string,
/** Email address of message sender. */
Expand All @@ -43,6 +45,7 @@ MessageView.propTypes = {

MessageView.defaultProps = {
"from_name": "Name Unavailable",
"userAlias": "Alias Unavailable",
"datetime": new Date(1970, 1, 1, 0, 0, 0, 0),
"from_email": "Email Unavailable",
"to": [],
Expand Down

0 comments on commit 922d5d3

Please sign in to comment.