mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-14 13:13:22 +00:00
35 lines
924 B
JavaScript
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;
|