Skip to content

Commit 8b70ec0

Browse files
committed
(docs) fix typo
1 parent 75f6c0c commit 8b70ec0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ You can import it as a custom component:
8888
(3) `menuActions` can be used to display your own buttons when clicking the vertical dots icon inside a room.<br>
8989
You can then use the [menuActionHandler](#events-api) event to call your own action after clicking a button. Ex:
9090

91-
```javascript
91+
```html
9292
menuActions="[
9393
{
9494
name: 'inviteUser',
@@ -107,7 +107,7 @@ menuActions="[
107107

108108
(4) `textMessages` can be used to replace default texts. Ex:
109109

110-
```javascript
110+
```html
111111
textMessages="{
112112
MESSAGE_DELETED: 'Ce message a été supprimé',
113113
MESSAGES_EMPTY: 'Aucun message',
@@ -123,7 +123,7 @@ Your props must follow a specific structure to display rooms and messages correc
123123

124124
### Rooms prop
125125

126-
```javascript
126+
```html
127127
rooms="[
128128
{
129129
roomId: 1,
@@ -147,10 +147,10 @@ rooms="[
147147
Message objects are rendered differently depending on their type. Currently, only text, emoji and file types are supported.<br>
148148
Each message object has a `sender_id` field which can have the value 'me' or the id of the corresponding agent.
149149

150-
```javascript
150+
```html
151151
messages="[
152152
{
153-
content: 'message 1",
153+
content: 'message 1',
154154
sender_id: 1234,
155155
username: 'John Doe',
156156
date: '13 November',
@@ -254,7 +254,7 @@ messages: {
254254
MESSAGE_ID_1: {
255255
content: 'My first message',
256256
sender_id: 2,
257-
timestamp: 'December 11, 2019 at 4:00:00 PM UTC+2,
257+
timestamp: 'December 11, 2019 at 4:00:00 PM UTC+2',
258258
seen: true
259259
}
260260
}

0 commit comments

Comments
 (0)