mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-18 09:01:46 +03:00
fix: expose dropzone ref to publish widget
This commit is contained in:
parent
d36e21c5f1
commit
2281dc6bd0
2 changed files with 2 additions and 0 deletions
|
@ -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