From 2f2c1ef4029dee17be0d16acdd60b7d1718d519f Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Wed, 19 Jul 2017 02:06:56 +0200
Subject: refactor file browser stuff

---
 client/components/Browser/BrowserView.jsx | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

(limited to 'client/components/Browser/BrowserView.jsx')

diff --git a/client/components/Browser/BrowserView.jsx b/client/components/Browser/BrowserView.jsx
index 604d952..e510fc7 100644
--- a/client/components/Browser/BrowserView.jsx
+++ b/client/components/Browser/BrowserView.jsx
@@ -1,7 +1,8 @@
 import { h, Component } from 'preact'
 
-import Folders from './Folders/Folders.jsx'
-import Files from './Files/Files.jsx'
+import NewFolder from '../../containers/newFolder.js'
+import FolderList from '../../containers/folderList.js'
+import FileList from '../../containers/fileList.js'
 
 export default function BrowserView (props) {
   const openFolders = (props.openFolders || []).map((folder_id) => {
@@ -9,20 +10,14 @@ export default function BrowserView (props) {
     if (! folder_list.length) return
     const folder = folder_list[0]
     return (
-      <Files
-        folder={folder}
-        addFiles={props.addFiles}
-        onClose={() => props.closeFolder(folder)}
-      />
+      <FileList folder={folder} />
     )
   })
   
   return (
     <div class='column'>
-      <Folders folders={props.folders}
-        openFolder={(folder) => props.openFolder(folder)}
-        addFolder={(folder) => props.addFolder(folder)}
-      />
+      <NewFolder />
+      <FolderList />
       {openFolders}
     </div>
   )
-- 
cgit v1.2.3-70-g09d2

