Show just first image if we receive mixed multi-attachment msg

This commit is contained in:
Scott Nonnenberg
2019-01-14 11:21:43 -08:00
parent 52d3138958
commit ba711d8985
2 changed files with 56 additions and 1 deletions

View File

@@ -352,3 +352,35 @@ const attachments = [
</div>
</div>;
```
### Mixing attachment types
```
const attachments = [
{
url: util.pngObjectUrl,
contentType: 'image/png',
width: 320,
height: 240,
},
{
contentType: 'text/plain',
},
{
url: util.pngObjectUrl,
contentType: 'image/png',
width: 320,
height: 240,
},
];
<div>
<div>
<ImageGrid attachments={attachments} i18n={util.i18n} />
</div>
<hr />
<div>
<ImageGrid withContentAbove withContentBelow attachments={attachments} i18n={util.i18n} />
</div>
</div>;
```