From 11a70bc347587219b2ec7b63cf4a6ff69bb4199b Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Fri, 7 Jul 2017 21:40:15 +0200
Subject: upload files and they show up, then process

---
 client/components/Browser/Files/FileUploadButton.jsx | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

(limited to 'client/components/Browser/Files/FileUploadButton.jsx')

diff --git a/client/components/Browser/Files/FileUploadButton.jsx b/client/components/Browser/Files/FileUploadButton.jsx
index 136cd45..2d25d3e 100644
--- a/client/components/Browser/Files/FileUploadButton.jsx
+++ b/client/components/Browser/Files/FileUploadButton.jsx
@@ -2,11 +2,10 @@ import { h, Component } from 'preact'
 
 import client from '../../../client.js'
 
-export default class Folder extends Component {
+export default class FileUploadButton extends Component {
   constructor(props) {
     super()
-    this.state = {
-    }
+    this.state = {}
     this.updateFiles = this.updateFiles.bind(this)
   }
   updateFiles(event){
@@ -18,13 +17,6 @@ export default class Folder extends Component {
   }
 
   render() {
-    const files = (this.props.folder.files || []).map( (file, i) => {
-      return (
-        <div key={i}>
-          {file.name}
-        </div>
-      )
-    })
     return (
       <div class='fileUploadButton'>
         <input type='file' multiple name='files' onChange={this.updateFiles} />
-- 
cgit v1.2.3-70-g09d2

