diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-04 04:14:03 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-04 04:14:03 +0200 |
| commit | d520c67839724e80d8b68b8fe933f1e7755a8f42 (patch) | |
| tree | 51188a9a3b7a125d1e79c899ba7058a280bcde50 /client/components/Browser | |
| parent | 2263f412817d6d2d36372e7617feb0d97fa57af8 (diff) | |
writing task form in a reduxy way
Diffstat (limited to 'client/components/Browser')
| -rw-r--r-- | client/components/Browser/Folder/Folder.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/components/Browser/Folder/Folder.jsx b/client/components/Browser/Folder/Folder.jsx index 3ed3ddb..a3588f1 100644 --- a/client/components/Browser/Folder/Folder.jsx +++ b/client/components/Browser/Folder/Folder.jsx @@ -3,6 +3,8 @@ import { h, Component } from 'preact' import client from '../../../client.js' import FileUploadButton from './FileUploadButton.jsx' +import TaskContentLink from '../../../containers/taskContentLink.js' +import TaskStyleLink from '../../../containers/taskStyleLink.js' export default class Folder extends Component { constructor(props) { @@ -36,8 +38,8 @@ export default class Folder extends Component { <span class='name' onClick={() => this.handleClick(file)}>{file.name}</span> <span class='mime'>{file.mime}</span> <span class='actions'> - <span onClick={() => this.props.setContent(file)}>content ></span> - <span onClick={() => this.props.setStyle(file)}>style ></span> + <TaskContentLink file={file}> content </TaskContentLink> + <TaskStyleLink file={file}> style </TaskStyleLink> </span> </div> ) |
