Remove caption editor

This commit is contained in:
Evan Hahn 2021-11-09 18:25:29 -06:00 committed by GitHub
parent 6e394a84d6
commit 37992715cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 7 additions and 512 deletions

View file

@ -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);