Pārlūkot izejas kodu

removed unused code + fixed Folder recursive call

Skylsmoi 6 gadus atpakaļ
vecāks
revīzija
973c7218ff

+ 2 - 0
src/component/Workspace/Folder.jsx Parādīt failu

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

+ 0 - 1
src/container/Sidebar.jsx Parādīt failu

14
   constructor (props) {
14
   constructor (props) {
15
     super(props)
15
     super(props)
16
     this.state = {
16
     this.state = {
17
-      firstWsOpen: false,
18
       workspaceIdInUrl: parseInt(props.match.params.idws)
17
       workspaceIdInUrl: parseInt(props.match.params.idws)
19
     }
18
     }
20
   }
19
   }

+ 0 - 8
src/container/WorkspaceContent.jsx Parādīt failu

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