1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00
onion/js/components/ascribe_uploader/file_drag_and_drop_preview_other.js

35 lines
1.1 KiB
JavaScript
Raw Normal View History

2015-06-25 13:28:49 +02:00
'use strict';
2015-06-23 10:16:53 +02:00
import React from 'react';
import ProgressBar from 'react-progressbar';
let FileDragAndDropPreviewOther = React.createClass({
propTypes: {
type: React.PropTypes.string,
2015-06-25 13:46:10 +02:00
progress: React.PropTypes.number,
onClick: React.PropTypes.func
2015-06-23 10:16:53 +02:00
},
render() {
2015-06-25 13:28:49 +02:00
return (
<div
2015-06-29 10:01:54 +02:00
2015-06-23 10:16:53 +02:00
className="file-drag-and-drop-preview">
<ProgressBar completed={this.props.progress} color="black"/>
<div className="file-drag-and-drop-preview-table-wrapper">
<div className="file-drag-and-drop-preview-other">
2015-06-29 10:01:54 +02:00
<span
className="glyphicon glyphicon-remove delete-file"
aria-hidden="true"
title="Delete"
onClick={this.props.onClick}>
</span>
2015-06-23 10:16:53 +02:00
<span>{'.' + this.props.type}</span>
</div>
</div>
</div>
);
}
});
export default FileDragAndDropPreviewOther;