signal-desktop/ts/components/conversation/media-gallery/DocumentListItem.md

21 lines
405 B
Markdown
Raw Normal View History

2018-04-15 01:11:40 +00:00
DocumentListItem example:
2018-04-12 20:23:26 +00:00
```js
2018-04-15 01:11:40 +00:00
<DocumentListItem
2018-04-12 20:23:26 +00:00
fileName="meow.jpg"
fileSize={1024 * 1000 * 2}
timestamp={Date.now()}
/>
2018-04-15 01:11:40 +00:00
<DocumentListItem
2018-04-12 20:23:26 +00:00
fileName="rickroll.wmv"
fileSize={1024 * 1000 * 8}
timestamp={Date.now() - 24 * 60 * 1000}
/>
2018-04-15 01:11:40 +00:00
<DocumentListItem
2018-04-12 20:23:26 +00:00
fileName="kitten.gif"
fileSize={1024 * 1000 * 1.2}
timestamp={Date.now() - 14 * 24 * 60 * 1000}
shouldShowSeparator={false}
2018-04-12 20:23:26 +00:00
/>
```