fix: expose dropzone ref to publish widget
This commit is contained in:
parent
d36e21c5f1
commit
2281dc6bd0
|
@ -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(
|
||||
|
|
|
@ -143,6 +143,7 @@ export const useUploadMediaAttachment = (draftRef: Ref<Draft>) => {
|
|||
isUploading,
|
||||
isExceedingAttachmentLimit,
|
||||
failedAttachments,
|
||||
dropZoneRef,
|
||||
isOverDropZone,
|
||||
|
||||
uploadAttachments,
|
||||
|
|
Loading…
Reference in a new issue