From 1d413a2f7671e91ccf4a9dfc29cf740a6fa82f8f Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 4 May 2023 12:09:03 +1000 Subject: [PATCH] fix: moved QuoteIcon component into QuoteIconContainer --- .../message-content/quote/QuoteIcon.tsx | 21 ------------------- .../quote/QuoteIconContainer.tsx | 21 ++++++++++++++++++- 2 files changed, 20 insertions(+), 22 deletions(-) delete mode 100644 ts/components/conversation/message/message-content/quote/QuoteIcon.tsx diff --git a/ts/components/conversation/message/message-content/quote/QuoteIcon.tsx b/ts/components/conversation/message/message-content/quote/QuoteIcon.tsx deleted file mode 100644 index 0ecc33706..000000000 --- a/ts/components/conversation/message/message-content/quote/QuoteIcon.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import classNames from 'classnames'; -import React from 'react'; - -export const QuoteIcon = (props: any) => { - const { icon } = props; - - return ( -
-
-
-
-
-
-
- ); -}; diff --git a/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx b/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx index e565d7753..330dde711 100644 --- a/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx +++ b/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx @@ -5,7 +5,7 @@ import { MIME } from '../../../../../types'; import { noop } from 'lodash'; import { QuoteImage } from './QuoteImage'; -import { QuoteIcon } from './QuoteIcon'; +import classNames from 'classnames'; function getObjectUrl(thumbnail: Attachment | undefined): string | undefined { if (thumbnail && thumbnail.objectUrl) { @@ -15,6 +15,25 @@ function getObjectUrl(thumbnail: Attachment | undefined): string | undefined { return; } +const QuoteIcon = (props: any) => { + const { icon } = props; + + return ( +
+
+
+
+
+
+
+ ); +}; + export const QuoteIconContainer = ( props: Pick & { handleImageErrorBound: () => void;