minor tweak
This commit is contained in:
parent
07f0fd5b40
commit
c1fbc2066b
|
@ -31,14 +31,7 @@ export const Media = ({ element }: IImage) => {
|
||||||
const showAttachment = (attachment: IAttachment) => Navigation.navigate('AttachmentView', { attachment });
|
const showAttachment = (attachment: IAttachment) => Navigation.navigate('AttachmentView', { attachment });
|
||||||
const imageUrl = element?.imageUrl ?? '';
|
const imageUrl = element?.imageUrl ?? '';
|
||||||
|
|
||||||
return (
|
return <ImageContainer file={{ image_url: imageUrl }} imageUrl={imageUrl} showAttachment={showAttachment} />;
|
||||||
<ImageContainer
|
|
||||||
file={{ image_url: imageUrl }}
|
|
||||||
imageUrl={imageUrl}
|
|
||||||
showAttachment={showAttachment}
|
|
||||||
messageId={element.blockId || element.actionId}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const genericImage = (element: IElement, context?: number) => {
|
const genericImage = (element: IElement, context?: number) => {
|
||||||
|
|
Loading…
Reference in New Issue