diff --git a/apps/shinkai-desktop/src/components/chat/conversation-footer.tsx b/apps/shinkai-desktop/src/components/chat/conversation-footer.tsx index e11d586b9..a971211b3 100644 --- a/apps/shinkai-desktop/src/components/chat/conversation-footer.tsx +++ b/apps/shinkai-desktop/src/components/chat/conversation-footer.tsx @@ -638,15 +638,19 @@ function ConversationChatFooter({ inboxId }: { inboxId: string }) { }, ); - const { getRootProps: getRootFileProps, getInputProps: getInputFileProps } = - useDropzone({ - multiple: true, - onDrop: (acceptedFiles) => { - const previousFiles = chatForm.getValues('files') ?? []; - const newFiles = [...previousFiles, ...acceptedFiles]; - chatForm.setValue('files', newFiles, { shouldValidate: true }); - }, - }); + const { + getRootProps: getRootFileProps, + getInputProps: getInputFileProps, + isDragActive, + open, + } = useDropzone({ + multiple: true, + onDrop: (acceptedFiles) => { + const previousFiles = chatForm.getValues('files') ?? []; + const newFiles = [...previousFiles, ...acceptedFiles]; + chatForm.setValue('files', newFiles, { shouldValidate: true }); + }, + }); const currentFiles = useWatch({ control: chatForm.control, @@ -749,231 +753,270 @@ function ConversationChatFooter({ inboxId }: { inboxId: string }) { }, [chatForm, inboxId]); return ( -