|
@@ -1,7 +1,6 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
-import Icon from '../Common/Icon';
|
|
|
|
|
import User from '../User/User';
|
|
import User from '../User/User';
|
|
|
|
|
|
|
|
export default class Attachment extends React.Component {
|
|
export default class Attachment extends React.Component {
|
|
@@ -13,10 +12,10 @@ export default class Attachment extends React.Component {
|
|
|
|
|
|
|
|
iconNameByFormat(format) {
|
|
iconNameByFormat(format) {
|
|
|
if (format.match(/image\/.+/i)) {
|
|
if (format.match(/image\/.+/i)) {
|
|
|
- return 'file-image-o';
|
|
|
|
|
|
|
+ return 'fa fa-file-image-o';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return 'file-o';
|
|
|
|
|
|
|
+ return 'fa fa-file-o';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
_onAttachmentDeleteClicked(event) {
|
|
_onAttachmentDeleteClicked(event) {
|
|
@@ -42,7 +41,7 @@ export default class Attachment extends React.Component {
|
|
|
return (
|
|
return (
|
|
|
<li>
|
|
<li>
|
|
|
<User user={attachment.creator} />
|
|
<User user={attachment.creator} />
|
|
|
- <Icon name={formatIcon} />
|
|
|
|
|
|
|
+ <i className={formatIcon}></i>
|
|
|
|
|
|
|
|
<a href={attachment.url}> {attachment.originalName}</a>
|
|
<a href={attachment.url}> {attachment.originalName}</a>
|
|
|
|
|
|