From 2f2c1ef4029dee17be0d16acdd60b7d1718d519f Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Wed, 19 Jul 2017 02:06:56 +0200
Subject: refactor file browser stuff

---
 client/components/Tasks/Tasks.jsx | 30 ++++++++++++++----------------
 1 file changed, 14 insertions(+), 16 deletions(-)

(limited to 'client/components/Tasks/Tasks.jsx')

diff --git a/client/components/Tasks/Tasks.jsx b/client/components/Tasks/Tasks.jsx
index 79ee0a1..c76e61d 100644
--- a/client/components/Tasks/Tasks.jsx
+++ b/client/components/Tasks/Tasks.jsx
@@ -4,23 +4,21 @@ import { Link } from 'react-router-dom'
 import TaskForm from '../../containers/taskForm.js'
 import TaskList from '../../containers/taskList.js'
 
-export default class Tasks extends Component {
-  render() {
-    return (
-      <div class='column'>
-        <div class='window'>
-          <div class='heading'>
-            <b>create task</b>
-          </div>
-          <TaskForm />
+export default function Tasks (props) {
+  return (
+    <div class='column'>
+      <div class='window'>
+        <div class='heading'>
+          <b>create task</b>
         </div>
-        <div class='window'>
-          <div class='heading'>
-            <b>recent tasks</b>
-          </div>
-          <TaskList />
+        <TaskForm />
+      </div>
+      <div class='window'>
+        <div class='heading'>
+          <b>recent tasks</b>
         </div>
+        <TaskList />
       </div>
-    )
-  }
+    </div>
+  )
 }
-- 
cgit v1.2.3-70-g09d2

