From 762e44e743508e9febbfaec448fc1d4d27d21fa3 Mon Sep 17 00:00:00 2001 From: Ted Date: Thu, 12 Dec 2024 10:28:09 +0800 Subject: [PATCH] Revert "Merge pull request #640 from urfit-tech/fix/braft-editor-external-limit" This reverts commit 6d143193fc6499a65e022d5cb214f063e13e83d0, reversing changes made to 4bd4e103238d35c925e17c45b434d4e3de31cb78. --- src/components/appointment/AppointmentCard.tsx | 6 +----- src/components/common/MessageItemForm.tsx | 6 +----- src/components/common/MessageReplyCreationForm.tsx | 6 +----- src/components/common/MessageReplyItem.tsx | 6 +----- src/components/issue/IssueCreationModal.tsx | 6 +----- src/components/issue/IssueItem.tsx | 6 +----- src/components/issue/IssueReplyCreationBlock.tsx | 6 +----- src/components/issue/IssueReplyItem.tsx | 6 +----- .../merchandise/MerchandiseOrderContactModal.tsx | 6 +----- src/components/practice/PracticeUploadModal.tsx | 14 ++------------ .../practice/SuggestionCreationModal.tsx | 6 +----- src/components/profile/ProfileBasicAdminCard.tsx | 6 +----- .../profile/ProfileIntroBusinessCard.tsx | 6 +----- src/components/review/ReviewItem.tsx | 6 +----- src/components/review/ReviewModal.tsx | 12 ++---------- src/components/review/ReviewReplyItem.tsx | 6 +----- 16 files changed, 18 insertions(+), 92 deletions(-) diff --git a/src/components/appointment/AppointmentCard.tsx b/src/components/appointment/AppointmentCard.tsx index c00a8953b..bd2cadf53 100644 --- a/src/components/appointment/AppointmentCard.tsx +++ b/src/components/appointment/AppointmentCard.tsx @@ -541,11 +541,7 @@ const AppointmentCard: React.VFC = ({ 'hr', 'media', ]} - media={{ - uploadFn: createUploadFn(appId, authToken), - accepts: { video: false, audio: false }, - externals: { video: false, audio: false }, - }} + media={{ uploadFn: createUploadFn(appId, authToken), accepts: { video: false, audio: false } }} />, )} diff --git a/src/components/common/MessageItemForm.tsx b/src/components/common/MessageItemForm.tsx index 237c18440..e2c1369e1 100644 --- a/src/components/common/MessageItemForm.tsx +++ b/src/components/common/MessageItemForm.tsx @@ -42,11 +42,7 @@ const MessageItemForm: React.VFC = ({ title, description, })( , )} diff --git a/src/components/common/MessageReplyCreationForm.tsx b/src/components/common/MessageReplyCreationForm.tsx index 998b250bc..f33d6fd37 100644 --- a/src/components/common/MessageReplyCreationForm.tsx +++ b/src/components/common/MessageReplyCreationForm.tsx @@ -63,11 +63,7 @@ const MessageReplyCreationForm: React.VFC = ({ on language="zh-hant" placeholder={formatMessage(issueMessages.form.placeholder.reply)} controls={['bold', 'italic', 'underline', 'separator', 'media']} - media={{ - uploadFn: createUploadFn(appId, authToken), - accepts: { video: false, audio: false }, - externals: { video: false, audio: false }, - }} + media={{ uploadFn: createUploadFn(appId, authToken), accepts: { video: false, audio: false } }} />, )} diff --git a/src/components/common/MessageReplyItem.tsx b/src/components/common/MessageReplyItem.tsx index 2462a916f..136565df1 100644 --- a/src/components/common/MessageReplyItem.tsx +++ b/src/components/common/MessageReplyItem.tsx @@ -110,11 +110,7 @@ const MessageReplyItem: React.VFC<{ value={contentState} onChange={value => setContentState(value)} controls={['bold', 'italic', 'underline', 'separator', 'media']} - media={{ - uploadFn: createUploadFn(appId, authToken), - accepts: { video: false, audio: false }, - externals: { video: false, audio: false }, - }} + media={{ uploadFn: createUploadFn(appId, authToken), accepts: { video: false, audio: false } }} />