diff --git a/ts/components/CaptionEditor.tsx b/ts/components/CaptionEditor.tsx index 20e51b2ce..1dd9494ce 100644 --- a/ts/components/CaptionEditor.tsx +++ b/ts/components/CaptionEditor.tsx @@ -17,14 +17,7 @@ const CaptionEditorObject = (props: Props) => { const isImageTypeSupported = GoogleChrome.isImageTypeSupported(contentType); if (isImageTypeSupported) { - return ( - {window.i18n('imageAttachmentAlt')} - ); + return ; } const isVideoTypeSupported = GoogleChrome.isVideoTypeSupported(contentType); diff --git a/ts/components/conversation/Image.tsx b/ts/components/conversation/Image.tsx index dc051e219..d29c62736 100644 --- a/ts/components/conversation/Image.tsx +++ b/ts/components/conversation/Image.tsx @@ -145,7 +145,6 @@ export const Image = (props: Props) => { {window.i18n('imageCaptionIconAlt')} ) : null} diff --git a/ts/components/conversation/StagedAttachmentList.tsx b/ts/components/conversation/StagedAttachmentList.tsx index cf5d3218a..2211e814d 100644 --- a/ts/components/conversation/StagedAttachmentList.tsx +++ b/ts/components/conversation/StagedAttachmentList.tsx @@ -85,7 +85,7 @@ export const StagedAttachmentList = (props: Props) => { return ( {window.i18n('stagedImageAttachment', { {isLoaded && image && isContentTypeImage ? ( {window.i18n('stagedPreviewThumbnail', { return ( - + diff --git a/ts/components/conversation/media-gallery/MediaGridItem.tsx b/ts/components/conversation/media-gallery/MediaGridItem.tsx index 1b4822afa..6557bf196 100644 --- a/ts/components/conversation/media-gallery/MediaGridItem.tsx +++ b/ts/components/conversation/media-gallery/MediaGridItem.tsx @@ -15,7 +15,6 @@ type Props = { const MediaGridItemContent = (props: Props) => { const { mediaItem } = props; - const i18n = window.i18n; const { attachment, contentType } = mediaItem; const urlToDecrypt = mediaItem.thumbnailObjectUrl || ''; @@ -50,7 +49,6 @@ const MediaGridItemContent = (props: Props) => { return ( {i18n('lightboxImageAlt')} { return (
{i18n('lightboxImageAlt')} {
{window.i18n('previewThumbnail',