+ {this.props.streamName} |
+ {this.props.completed ? 'True' : 'False'} |
+ |
+ |
+
+ );
+ }
+});
+
+var MyFilesPage = React.createClass({
+ getInitialState: function() {
+ return {
+ filesInfo: null,
+ };
+ },
+ componentWillMount: function() {
+ lbry.getFilesInfo((filesInfo) => {
+ this.setState({
+ filesInfo: filesInfo
+ });
+ });
+ },
+ render: function() {
+ if (!this.state.filesInfo) {
+ return null;
+ } else {
+ var rows = [];
+ for (let fileInfo of this.state.filesInfo) {
+ console.log(fileInfo);
+ rows.push(