From 3bcbbffa8e79c005324457f64263644029627c5d Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Date: Tue, 20 Sep 2022 20:07:12 -0300 Subject: [PATCH] remove useless memo and export thumb size --- app/views/ShareView/Thumbs.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/ShareView/Thumbs.tsx b/app/views/ShareView/Thumbs.tsx index 4c3434c0b..d9425bfed 100644 --- a/app/views/ShareView/Thumbs.tsx +++ b/app/views/ShareView/Thumbs.tsx @@ -11,7 +11,7 @@ import { allowPreview } from './utils'; import { TSupportedThemes } from '../../theme'; import { IShareAttachment } from '../../definitions'; -const THUMB_SIZE = 64; +export const THUMB_SIZE = 64; const styles = StyleSheet.create({ list: { @@ -136,7 +136,7 @@ const Thumb = ({ item, theme, isShareExtension, onPress, onRemove }: IThumb) => ); -const Thumbs = React.memo(({ attachments, theme, isShareExtension, onPress, onRemove }: IThumbs) => { +const Thumbs = ({ attachments, theme, isShareExtension, onPress, onRemove }: IThumbs) => { if (attachments?.length > 1) { return (