fix: expose dropzone ref to publish widget

This commit is contained in:
Daniel Roe 2023-01-10 22:51:25 +00:00
parent d36e21c5f1
commit 2281dc6bd0
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ const { draft } = $(draftState)
const {
isExceedingAttachmentLimit, isUploading, failedAttachments, isOverDropZone,
uploadAttachments, pickAttachments, setDescription, removeAttachment,
dropZoneRef,
} = $(useUploadMediaAttachment($$(draft)))
let { shouldExpanded, isExpanded, isSending, isPublishDisabled, publishDraft } = $(usePublish(

View file

@ -143,6 +143,7 @@ export const useUploadMediaAttachment = (draftRef: Ref<Draft>) => {
isUploading,
isExceedingAttachmentLimit,
failedAttachments,
dropZoneRef,
isOverDropZone,
uploadAttachments,