From d520c67839724e80d8b68b8fe933f1e7755a8f42 Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Tue, 4 Jul 2017 04:14:03 +0200
Subject: writing task form in a reduxy way

---
 client/components/Browser/Folder/Folder.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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

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 &gt;</span>
-            <span onClick={() => this.props.setStyle(file)}>style &gt;</span>
+            <TaskContentLink file={file}> content </TaskContentLink>
+            <TaskStyleLink file={file}> style </TaskStyleLink>
           </span>
         </div>
       )
-- 
cgit v1.2.3-70-g09d2

