chore: clean

This commit is contained in:
Ephraim Atta-Duncan
2025-11-19 01:08:06 +00:00
parent d6a1ce06d4
commit eb63ec436c
8 changed files with 1 additions and 44 deletions

View File

@ -120,13 +120,11 @@ export const EnvelopeDropZoneWrapper = ({
timestamp: new Date().toISOString(),
});
// Show AI prompt dialog for documents
setUploadedDocumentId(id);
setPendingRecipients(null);
setShouldNavigateAfterPromptClose(true);
setShowExtractionPrompt(true);
} else {
// Templates - navigate immediately
const pathPrefix = formatTemplatesPath(team.url);
await navigate(`${pathPrefix}/${id}/edit`);
}
@ -175,7 +173,6 @@ export const EnvelopeDropZoneWrapper = ({
return;
}
// Since users can only upload only one file (no multi-upload), we only handle the first file rejection
const { file, errors } = fileRejections[0];
if (!errors.length) {

View File

@ -42,9 +42,6 @@ export type EnvelopeUploadButtonProps = {
folderId?: string;
};
/**
* Upload an envelope
*/
export const EnvelopeUploadButton = ({ className, type, folderId }: EnvelopeUploadButtonProps) => {
const { t } = useLingui();
const { toast } = useToast();