Remove caption editor
This commit is contained in:
parent
6e394a84d6
commit
37992715cd
14 changed files with 7 additions and 512 deletions
|
@ -67,9 +67,6 @@ export const AttachmentList = ({
|
|||
const isVideo = isVideoAttachment(attachment);
|
||||
|
||||
if (isImage || isVideo || attachment.pending) {
|
||||
const clickCallback =
|
||||
attachments.length > 1 ? onClickAttachment : undefined;
|
||||
|
||||
const imageUrl =
|
||||
url || (isVideo ? BLANK_VIDEO_THUMBNAIL : undefined);
|
||||
|
||||
|
@ -88,7 +85,7 @@ export const AttachmentList = ({
|
|||
width={IMAGE_WIDTH}
|
||||
url={imageUrl}
|
||||
closeButton
|
||||
onClick={clickCallback}
|
||||
onClick={onClickAttachment}
|
||||
onClickClose={onCloseAttachment}
|
||||
onError={() => {
|
||||
onCloseAttachment(attachment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue