Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small syntax errors in chat examples #154

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading