From 0bba84d42d7e5577dc8ad937d108d5277dffb103 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Tue, 23 Jul 2024 02:31:09 -0700 Subject: [PATCH] AttachmentButton: fix react issues --- .../llmattachments/LLMAttachmentButton.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/apps/chat/components/composer/llmattachments/LLMAttachmentButton.tsx b/src/apps/chat/components/composer/llmattachments/LLMAttachmentButton.tsx index 9188f02f4..b02fe5652 100644 --- a/src/apps/chat/components/composer/llmattachments/LLMAttachmentButton.tsx +++ b/src/apps/chat/components/composer/llmattachments/LLMAttachmentButton.tsx @@ -115,17 +115,17 @@ function attachmentIcons(attachmentDraft: AttachmentDraft): React.ReactNode { // }).filter(Boolean); // 1+ icons - return + return {/* If we have a Web preview, show it first */} {!!attachmentDraft.input?.urlImage?.webpDataUrl && /*!imageDataRefs.length &&*/ ( - This was the page.
You can also Add the Screenshot as attachment}> - -
+ // This was the page.
You can also Add the Screenshot as attachment}> + + //
)} {/* If an output fragment contains a base64 image, show that as an icon too */} @@ -148,7 +148,7 @@ function attachmentIcons(attachmentDraft: AttachmentDraft): React.ReactNode { ); })} -
; + ; } function attachmentLabelText(attachmentDraft: AttachmentDraft): string {