Browse Source

removed unused code + fixed Folder recursive call

Skylsmoi 6 years ago
parent
commit
973c7218ff

+ 2 - 0
src/component/Workspace/Folder.jsx View File

@@ -57,9 +57,11 @@ class Folder extends React.Component {
57 57
         <div className='folder__content'>
58 58
           { content.map((c, i) => c.type === 'folder'
59 59
             ? <Folder
60
+              app={app}
60 61
               folderData={c}
61 62
               onClickItem={onClickItem}
62 63
               isLast={isLast}
64
+              t={t}
63 65
               key={c.id}
64 66
             />
65 67
             : <FileItem

+ 0 - 1
src/container/Sidebar.jsx View File

@@ -14,7 +14,6 @@ class Sidebar extends React.Component {
14 14
   constructor (props) {
15 15
     super(props)
16 16
     this.state = {
17
-      firstWsOpen: false,
18 17
       workspaceIdInUrl: parseInt(props.match.params.idws)
19 18
     }
20 19
   }

+ 0 - 8
src/container/WorkspaceContent.jsx View File

@@ -15,13 +15,6 @@ import {
15 15
 } from '../action-creator.async.js'
16 16
 
17 17
 class WorkspaceContent extends React.Component {
18
-  constructor (props) {
19
-    super(props)
20
-    this.state = {
21
-      activeFileType: ''
22
-    }
23
-  }
24
-
25 18
   componentDidMount () {
26 19
     const { workspaceList, app, match, dispatch } = this.props
27 20
 
@@ -33,7 +26,6 @@ class WorkspaceContent extends React.Component {
33 26
 
34 27
   componentDidUpdate (prevProps) {
35 28
     const { workspace, workspaceList, match, dispatch } = this.props
36
-    console.log('workspaceContent update', prevProps, this.props)
37 29
 
38 30
     // if a workspace is already loaded and the idws in url hasn't changed, do nothing
39 31
     if (workspace.id !== -1 && prevProps.match.params.idws === match.params.idws) return