aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
diff options
context:
space:
mode:
authoralyssaf16 <alyssa_feinberg@brown.edu>2024-10-31 00:05:27 -0400
committeralyssaf16 <alyssa_feinberg@brown.edu>2024-10-31 00:05:27 -0400
commitff934c67fc1fac71e7b3191cc213cfe29983fe2e (patch)
tree80968ffd93e64d45e76517f4ba5a0bd77b9da9f9 /src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
parentd1fc9d98172210090f5ed1aa8aaa8512f5afd0eb (diff)
nesting works
Diffstat (limited to 'src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx')
-rw-r--r--src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
index 4a39ee388..e2508d752 100644
--- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
+++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
@@ -468,6 +468,11 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
return childDocs;
};
+ // @action
+ // createSingleFlashcard = (data: any, options: DocumentOptions) => {
+
+ // }
+
@action
whichDoc = async (doc_type: string, data: string, options: DocumentOptions, id: string): Promise<Doc> => {
let doc;
@@ -476,6 +481,7 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
doc = DocCast(Docs.Create.TextDocument(data, options));
break;
case 'flashcard':
+ // doc = this.createSingleFlashcard(data, options);
doc = this.createFlashcard(data, options);
break;
case 'image':