From 377be04bdcd72634dd2b28348b66f140387cf65c Mon Sep 17 00:00:00 2001 From: tomfrew Date: Thu, 19 Dec 2024 12:25:14 -0400 Subject: [PATCH] Small syntax errors with chat examples (#154) --- _snippets/chat/chat-buttons.mdx | 6 +++--- _snippets/chat/chat-forms.mdx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_snippets/chat/chat-buttons.mdx b/_snippets/chat/chat-buttons.mdx index 82ef897..b434dc8 100644 --- a/_snippets/chat/chat-buttons.mdx +++ b/_snippets/chat/chat-buttons.mdx @@ -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', @@ -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: {}, } - }] + ] }) ``` \ No newline at end of file diff --git a/_snippets/chat/chat-forms.mdx b/_snippets/chat/chat-forms.mdx index 2280925..a7c2aa2 100644 --- a/_snippets/chat/chat-forms.mdx +++ b/_snippets/chat/chat-forms.mdx @@ -2,7 +2,7 @@ Plain.init({ // ...Other options - chatButtons: [{ + chatButtons: [ { // ...Other chat button options form: { @@ -32,7 +32,7 @@ Plain.init({ ] }, } - }] + ] })