Skip to content

Commit

Permalink
Fixing missing translation context consumer on Message HOC
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Mar 26, 2020
1 parent 7de6db5 commit d537e78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import deepequal from 'deep-equal';
import { MessageSimple } from './MessageSimple';
import { Attachment } from './Attachment';
import { MESSAGE_ACTIONS } from '../utils';
import { withTranslationContext } from '../context';

/**
* Message - A high level component which implements all the logic required for a message.
Expand All @@ -13,7 +14,7 @@ import { MESSAGE_ACTIONS } from '../utils';
* @example ./docs/Message.md
* @extends Component
*/
export class Message extends Component {
class Message extends Component {
constructor(props) {
super(props);
this.state = {
Expand Down Expand Up @@ -499,3 +500,7 @@ export class Message extends Component {
);
}
}

Message = withTranslationContext(Message);

export { Message };

0 comments on commit d537e78

Please sign in to comment.