From 2263f412817d6d2d36372e7617feb0d97fa57af8 Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Tue, 4 Jul 2017 02:11:44 +0200
Subject: break out browser and tasks

---
 client/components/Folder/FileUploadButton.jsx | 44 ---------------------------
 1 file changed, 44 deletions(-)
 delete mode 100644 client/components/Folder/FileUploadButton.jsx

(limited to 'client/components/Folder/FileUploadButton.jsx')

diff --git a/client/components/Folder/FileUploadButton.jsx b/client/components/Folder/FileUploadButton.jsx
deleted file mode 100644
index 24f4c4f..0000000
--- a/client/components/Folder/FileUploadButton.jsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import { h, Component } from 'preact'
-import { Link } from 'react-router-dom'
-
-import Modal from '../Modal.jsx'
-
-import client from '../../client.js'
-
-import FileUploadButton from './FileUploadButton.jsx'
-
-export default class Folder extends Component {
-  constructor(props) {
-    super()
-    this.state = {
-    }
-    this.updateFiles = this.updateFiles.bind(this)
-  }
-  updateFiles(event){
-    const name = event.target.name
-    const files = event.target.files
-    console.log(name, files)
-
-    client.upload(this.props.folder.id, files).then( got_files => {
-      console.log(got_files)
-      this.props.addFiles(got_files)
-    })
-  }
-
-  render() {
-    console.log(this.props)
-    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} />
-        <span>+ upload</span>
-      </div>
-    )
-  }
-}
-- 
cgit v1.2.3-70-g09d2

