Browse Source

comment react code in workspace/folder.jsx

AlexiCauvin 6 years ago
parent
commit
b6f862de04
1 changed files with 11 additions and 5 deletions
  1. 11 5
      src/component/Workspace/Folder.jsx

+ 11 - 5
src/component/Workspace/Folder.jsx View File

2
 import { translate } from 'react-i18next'
2
 import { translate } from 'react-i18next'
3
 import PropTypes from 'prop-types'
3
 import PropTypes from 'prop-types'
4
 import classnames from 'classnames'
4
 import classnames from 'classnames'
5
-import FileItem from './FileItem.jsx'
5
+// import FileItem from './FileItem.jsx'
6
 import PopupExtandedAction from '../../container/PopupExtandedAction.jsx'
6
 import PopupExtandedAction from '../../container/PopupExtandedAction.jsx'
7
 
7
 
8
 class Folder extends React.Component {
8
 class Folder extends React.Component {
38
   }
38
   }
39
 
39
 
40
   render () {
40
   render () {
41
-    const { app, folderData, onClickItem, onClickFolder, isLast, t } = this.props
41
+    const {
42
+      // app,
43
+      folderData,
44
+      // onClickItem,
45
+      // onClickFolder,
46
+      isLast,
47
+      t } = this.props
42
 
48
 
43
     return (
49
     return (
44
       <div className={classnames('folder', {'active': this.state.open, 'item-last': isLast})}>
50
       <div className={classnames('folder', {'active': this.state.open, 'item-last': isLast})}>
205
     title: PropTypes.string.isRequired,
211
     title: PropTypes.string.isRequired,
206
     content: PropTypes.array
212
     content: PropTypes.array
207
   }),
213
   }),
208
-  app: PropTypes.object,
209
-  onClickItem: PropTypes.func.isRequired,
210
-  onClickFolder: PropTypes.func.isRequired,
214
+  // app: PropTypes.object,
215
+  // onClickItem: PropTypes.func.isRequired,
216
+  // onClickFolder: PropTypes.func.isRequired,
211
   isLast: PropTypes.bool.isRequired
217
   isLast: PropTypes.bool.isRequired
212
 }
218
 }