session-desktop/ts/components/conversation/media-gallery/DocumentListItem.md
Scott Nonnenberg 2988da0981 Turn on all of Microsoft's recommend lint rules
Biggest changes forced by this: alt tags for all images, resulting in
new strings added to messages.json, and a new i18n paramter/prop added
in a plot of places.

Another change of note is that there are two new tslint.json files under
ts/test and ts/styleguide to relax our rules a bit there. This required
a change to our package.json script, as manually specifying the config
file there made it ignore our tslint.json files in subdirectories
2018-05-23 16:26:47 -07:00

487 B

<div>
  <DocumentListItem
    fileName="meow.jpg"
    fileSize={1024 * 1000 * 2}
    timestamp={Date.now()}
    i18n={util.i18n}
  />
  <DocumentListItem
    fileName="rickroll.wmv"
    fileSize={1024 * 1000 * 8}
    timestamp={Date.now() - 24 * 60 * 1000}
    i18n={util.i18n}
  />
  <DocumentListItem
    fileName="kitten.gif"
    fileSize={1024 * 1000 * 1.2}
    timestamp={Date.now() - 14 * 24 * 60 * 1000}
    shouldShowSeparator={false}
    i18n={util.i18n}
  />
</div>