Some style and interaction fine-tuning

This commit is contained in:
Scott Nonnenberg 2019-01-10 12:26:28 -08:00
parent a900792a06
commit aab2a57b48
12 changed files with 107 additions and 109 deletions

View file

@ -1,5 +1,4 @@
import React from 'react';
// import classNames from 'classnames';
import {
isImageTypeSupported,
@ -28,7 +27,6 @@ export class AttachmentList extends React.Component<Props> {
const {
attachments,
i18n,
// onError,
onClickAttachment,
onCloseAttachment,
onClose,
@ -59,7 +57,9 @@ export class AttachmentList extends React.Component<Props> {
return (
<Image
key={getUrl(attachment) || attachment.fileName || index}
alt={`TODO: attachment number ${index}`}
alt={i18n('stagedImageAttachment', [
getUrl(attachment) || attachment.fileName,
])}
i18n={i18n}
attachment={attachment}
softCorners={true}