Some style and interaction fine-tuning
This commit is contained in:
parent
a900792a06
commit
aab2a57b48
12 changed files with 107 additions and 109 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue