Skip to content

Commit

Permalink
Small syntax errors with chat examples (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfrew authored Dec 19, 2024
1 parent 1e16b57 commit 377be04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions _snippets/chat/chat-buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Plain.init({
// ...Other options

chatButtons: [{
chatButtons: [
{
// Optional. The name of the icon to display, see above for full options
icon: 'bulb',
Expand All @@ -11,11 +11,11 @@ Plain.init({
text: 'Give feedback',

// Optional. Allows you to set fields for the threads which are created with this button. See above for full options.
threadDetails: {};
threadDetails: {},

// Optional. Form elements which the user must fill out before sending a chat message. See below for full options.
form: {},
}
}]
]
})
```
4 changes: 2 additions & 2 deletions _snippets/chat/chat-forms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Plain.init({
// ...Other options
chatButtons: [{
chatButtons: [
{
// ...Other chat button options
form: {
Expand Down Expand Up @@ -32,7 +32,7 @@ Plain.init({
]
},
}
}]
]
})


Expand Down

0 comments on commit 377be04

Please sign in to comment.