Skip to content

Commit

Permalink
refactor: remove multiupload on version
Browse files Browse the repository at this point in the history
  • Loading branch information
mfts committed Aug 13, 2024
1 parent 943ec02 commit be9b528
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions components/documents/add-document-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,21 +406,23 @@ export function AddDocumentModal({
</div>
</div>

<div className="flex justify-center">
<button
type="button"
className="text-sm text-muted-foreground underline-offset-4 transition-all hover:text-gray-800 hover:underline hover:dark:text-muted-foreground/80"
onClick={(e) => {
e.stopPropagation();
document
.getElementById("upload-multi-files-zone")
?.click();
clearModelStates();
}}
>
Want to upload multiple files?
</button>
</div>
{!newVersion ? (
<div className="flex justify-center">
<button
type="button"
className="text-sm text-muted-foreground underline-offset-4 transition-all hover:text-gray-800 hover:underline hover:dark:text-muted-foreground/80"
onClick={(e) => {
e.stopPropagation();
document
.getElementById("upload-multi-files-zone")
?.click();
clearModelStates();
}}
>
Want to upload multiple files?
</button>
</div>
) : null}

<div className="flex justify-center">
<Button
Expand Down

0 comments on commit be9b528

Please sign in to comment.