16 lines
428 B
JavaScript
Executable File
16 lines
428 B
JavaScript
Executable File
UploadingFileListItem = React.createClass ({
|
|
percUploaded() {
|
|
return Math.round((this.uploadedSize / this.size) * 100);
|
|
},
|
|
|
|
render() {
|
|
<li class="presenter-uploader-file-item is-uploading">
|
|
<span class="presenter-uploader-file-item-name">
|
|
{this.props.name}
|
|
</span>
|
|
<span class="presenter-uploader-file-item-progress">
|
|
{percUploaded}%
|
|
</span>
|
|
</li>
|
|
}
|
|
}); |