1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-14 13:13:22 +00:00
seahub/frontend/src/components/shared-link-file-uploader/forbid-upload-list-item.js
Michael An 6233649970
12.0 remove font awesome (#6257)
* remove font-awesome

* remove font awesome 3.2.1
2024-06-28 08:39:44 +08:00

35 lines
924 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { Utils } from '../../utils/utils';
import { gettext } from '../../utils/constants';
const propTypes = {
file: PropTypes.object,
};
class ForbidUploadListItem extends React.Component {
render() {
const { file } = this.props;
return (
<tr className="file-upload-item">
<td className="upload-name">
<div className="ellipsis" title={file.name}>{file.name}</div>
</td>
<td>{Utils.bytesToSize(file.size)}</td>
<td>
<div className="d-flex align-items-center">
<span className="upload-failure-icon sf3-font sf3-font-info mr-2"></span>
<span className="upload-failure-msg">{gettext('File too large')}</span>
</div>
</td>
<td></td>
</tr>
);
}
}
ForbidUploadListItem.propTypes = propTypes;
export default ForbidUploadListItem;