+
);
}
}
-export default App;
\ No newline at end of file
+export default App;
From 7f0a75aae94a033cfbf374ef45b48e2b7c3f1f54 Mon Sep 17 00:00:00 2001
From: anhld1110 <55491243+anhld1110@users.noreply.github.com>
Date: Mon, 6 Apr 2020 11:10:59 +0700
Subject: [PATCH 05/10] Create components
---
src/components | 1 +
1 file changed, 1 insertion(+)
create mode 100644 src/components
diff --git a/src/components b/src/components
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/src/components
@@ -0,0 +1 @@
+
From e35d7934fa9b23e3b355886ae90fae64a36c97b8 Mon Sep 17 00:00:00 2001
From: anhld1110 <55491243+anhld1110@users.noreply.github.com>
Date: Mon, 6 Apr 2020 11:12:31 +0700
Subject: [PATCH 06/10] Create Addtask.js
---
src/Addtask.js | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 src/Addtask.js
diff --git a/src/Addtask.js b/src/Addtask.js
new file mode 100644
index 0000000..c50a22c
--- /dev/null
+++ b/src/Addtask.js
@@ -0,0 +1,68 @@
+import React from "react";
+
+class Addtask extends React.Component {
+ constructor(props) {
+ super(props)
+ this.state = {
+ title: '',
+ mieuta :''
+ }
+ this.handleChange = this.handleChange.bind(this)
+ this.handleSubmit = this.handleSubmit.bind(this)
+ }
+ handleChange(event) {
+ var target = event.target;
+ var name = target.name;
+ var value = target.value;
+ this.setState(
+ {
+ [name]: value
+ }
+ )
+ }
+
+ handleSubmit(event) {
+
+ this.props.handleClickParent(this.state);
+ event.preventDefault();
+
+ }
+
+ render() {
+ return (
+
+ );
+ }
+}
+
+export default Addtask;
From 2e490660d2f5f3ecca6f0f5b2c299166cc957ebe Mon Sep 17 00:00:00 2001
From: anhld1110 <55491243+anhld1110@users.noreply.github.com>
Date: Mon, 6 Apr 2020 11:14:45 +0700
Subject: [PATCH 07/10] Create Addtask.js
---
https:/github.com/anhld1110/Addtask.js | 68 ++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 https:/github.com/anhld1110/Addtask.js
diff --git a/https:/github.com/anhld1110/Addtask.js b/https:/github.com/anhld1110/Addtask.js
new file mode 100644
index 0000000..c50a22c
--- /dev/null
+++ b/https:/github.com/anhld1110/Addtask.js
@@ -0,0 +1,68 @@
+import React from "react";
+
+class Addtask extends React.Component {
+ constructor(props) {
+ super(props)
+ this.state = {
+ title: '',
+ mieuta :''
+ }
+ this.handleChange = this.handleChange.bind(this)
+ this.handleSubmit = this.handleSubmit.bind(this)
+ }
+ handleChange(event) {
+ var target = event.target;
+ var name = target.name;
+ var value = target.value;
+ this.setState(
+ {
+ [name]: value
+ }
+ )
+ }
+
+ handleSubmit(event) {
+
+ this.props.handleClickParent(this.state);
+ event.preventDefault();
+
+ }
+
+ render() {
+ return (
+
+
+
Add Task
+
+
+
+
+
+ );
+ }
+}
+
+export default Addtask;
From f14876a58f1b39af64d74859ec7d046e103d5cf7 Mon Sep 17 00:00:00 2001
From: anhld1110 <55491243+anhld1110@users.noreply.github.com>
Date: Mon, 6 Apr 2020 11:15:23 +0700
Subject: [PATCH 08/10] Create Taskitem.js
---
https:/github.com/anhld1110/Taskitem.js | 29 +++++++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 https:/github.com/anhld1110/Taskitem.js
diff --git a/https:/github.com/anhld1110/Taskitem.js b/https:/github.com/anhld1110/Taskitem.js
new file mode 100644
index 0000000..346bfc9
--- /dev/null
+++ b/https:/github.com/anhld1110/Taskitem.js
@@ -0,0 +1,29 @@
+import React from "react";
+
+class Taskitem extends React.Component {
+
+ onDelete = ()=>{
+ this.props.onDelete(this.props.index);
+
+ }
+ render() {
+ var task = this.props.task;
+ var index = this.props.index;
+ return (
+
+ | {index} |
+ {task.title} |
+ {task.mieuta} |
+
+
+ |
+
+ );
+ }
+}
+
+export default Taskitem;
From 6e938e25145f38b78cd4cf7f38e592ce565839a6 Mon Sep 17 00:00:00 2001
From: anhld1110 <55491243+anhld1110@users.noreply.github.com>
Date: Mon, 6 Apr 2020 11:15:59 +0700
Subject: [PATCH 09/10] Create Tasklist.js
---
https:/github.com/anhld1110/Tasklist.js | 42 +++++++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 https:/github.com/anhld1110/Tasklist.js
diff --git a/https:/github.com/anhld1110/Tasklist.js b/https:/github.com/anhld1110/Tasklist.js
new file mode 100644
index 0000000..16fb655
--- /dev/null
+++ b/https:/github.com/anhld1110/Tasklist.js
@@ -0,0 +1,42 @@
+import React from "react";
+import Taskitem from "./Taskitem";
+class Tasklist extends React.Component {
+ onDelete = ()=>{
+ this.props.onDelete(this.props.index);
+
+ }
+ render() {
+ var Task = this.props.Task;
+ var element =Task.map((task,index)=>{
+ return
+ });
+
+ return (
+
+
+
Task List
+
+
+
+
+
+ | ID |
+ Title |
+ Description |
+ Tools |
+
+
+ {element}
+
+
+
+ );
+ }
+}
+
+export default Tasklist;
From 9945cbe2b2387daa12b718bc49a0a05fa59ec1fa Mon Sep 17 00:00:00 2001
From: anhld1110 <55491243+anhld1110@users.noreply.github.com>
Date: Mon, 6 Apr 2020 11:16:38 +0700
Subject: [PATCH 10/10] Create TodoTile.js
---
https:/github.com/anhld1110/TodoTile.js | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 https:/github.com/anhld1110/TodoTile.js
diff --git a/https:/github.com/anhld1110/TodoTile.js b/https:/github.com/anhld1110/TodoTile.js
new file mode 100644
index 0000000..a2491e7
--- /dev/null
+++ b/https:/github.com/anhld1110/TodoTile.js
@@ -0,0 +1,9 @@
+import React from "react";
+
+class TodoTitle extends React.Component {
+ render() {
+ return
To Do App
;
+ }
+}
+
+export default TodoTitle;