Skip to content

Commit

Permalink
Add custom visitor pronoun support
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Miralles Campillo committed Mar 25, 2021
1 parent de4db99 commit 06041b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chat/message-area.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class MessageArea extends Component {
<ol class="chat">
{props.messages.map(({name, text, from, time}) => {
if (from === 'visitor') {
name = "You";
name = props.conf.visitorPronoun;
}
return (
<li class={from}>
Expand Down
3 changes: 2 additions & 1 deletion src/widget/default-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export const defaultConfiguration = {
mainColor: '#1f8ceb',
alwaysUseFloatingButton: false,
desktopHeight: 450,
desktopWidth: 370
desktopWidth: 370,
visitorPronoun: 'You'
};

0 comments on commit 06041b7

Please sign in to comment.