Skip to content

Commit 9abfcc5

Browse files
Fix BUIE samples
1 parent e92839d commit 9abfcc5

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

content/guides/embed/ui-elements/preview.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,15 @@ const suggestedQuestions = [
465465
];
466466

467467
preview.show(<FILE_ID>, <TOKEN>, {
468-
container: '.preview-container',
469-
contentAnswersProps={
470-
show: true,
471-
isCitationsEnabled: true,
472-
isMarkdownEnabled: true,
473-
isResetChatEnabled: true,
474-
suggestedQuestions
475-
}
476-
hasHeader: true,
468+
container: '.preview-container',
469+
contentAnswersProps={
470+
show: true,
471+
isCitationsEnabled: true,
472+
isMarkdownEnabled: true,
473+
isResetChatEnabled: true,
474+
suggestedQuestions
475+
}
476+
hasHeader: true,
477477
});
478478
```
479479

@@ -495,7 +495,7 @@ To localize the `suggestedQuestions` properly, make sure that the prompts are tr
495495
import ContentPreview from 'box-ui-elements/es/elements/content-preview';
496496
import { IntlProvider } from "react-intl";
497497

498-
const suggestedQuestions = [
498+
const questions = [
499499
{
500500
label: 'Key takeaways',
501501
prompt: 'What are the key takeaways from this document?',
@@ -521,11 +521,11 @@ export default () => {
521521
isCitationsEnabled: true,
522522
isMarkdownEnabled: true,
523523
isResetChatEnabled: true,
524-
suggestedQuestions
524+
suggestedQuestions: questions
525525
}}
526526
fileId={FILE_ID}
527527
token={TOKEN}
528-
hasHeader=true
528+
hasHeader="true"
529529
/>
530530
</IntlProvider>
531531
);

0 commit comments

Comments
 (0)