Skip to content

Commit

Permalink
fix: warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vaayne committed Sep 2, 2024
1 parent 91014c1 commit 5fae9f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions web/src/components/thread-input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ export function ThreadChatInput() {
<Divider />
<Group px="xs" justify="space-between">
<Group align="center" gap="3">
<Tooltip label="Upload image">
<UploadButton useButton={true} />
</Tooltip>
<UploadButton useButton={true} />
{selectModel()}
</Group>

Expand Down
8 changes: 1 addition & 7 deletions web/src/components/upload-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ export function UploadButton({ useButton = false }) {
docs: docs,
});
}

addFile({
type: file.type,
name: file.name,
url: uploadRes,
});
}
};

Expand All @@ -64,7 +58,7 @@ export function UploadButton({ useButton = false }) {
onDrop={handleFilesChange}
onReject={(files) => console.log("rejected files", files)}
maxSize={10 * 1024 ** 2}
accept={IMAGE_MIME_TYPE + PDF_MIME_TYPE}
accept={[...IMAGE_MIME_TYPE, ...PDF_MIME_TYPE]}
>
<Group
justify="center"
Expand Down

0 comments on commit 5fae9f3

Please sign in to comment.