+
)
}
+AddTodoForm.prototype = {
+ onAddTodo: PropTypes.func
+}
+
export default AddTodoForm;
\ No newline at end of file
diff --git a/src/components/AddTodoForm.module.css b/src/components/AddTodoForm.module.css
new file mode 100644
index 0000000..4fd2fd5
--- /dev/null
+++ b/src/components/AddTodoForm.module.css
@@ -0,0 +1,9 @@
+.divForm {
+ display: flex;
+ justify-content: center;
+ margin-bottom: 1%;
+}
+
+.addButton {
+ background-color: white;
+}
\ No newline at end of file
diff --git a/src/components/InputWithLabel.js b/src/components/InputWithLabel.js
new file mode 100644
index 0000000..6432145
--- /dev/null
+++ b/src/components/InputWithLabel.js
@@ -0,0 +1,27 @@
+import { useEffect, useRef } from "react";
+import PropTypes from 'prop-types'
+
+const InputWithLabel = (props) => {
+
+ const inputRef = useRef();
+
+ useEffect(() => {
+ inputRef.current.focus()
+ })
+
+ return (
+ <>
+
+
+ >
+ )
+}
+
+InputWithLabel.prototype = {
+ todoTitle: PropTypes.node,
+ handleTitleChange: PropTypes.node,
+ children: PropTypes.node
+
+}
+
+export default InputWithLabel
diff --git a/src/TodoList.js b/src/components/TodoList.js
similarity index 66%
rename from src/TodoList.js
rename to src/components/TodoList.js
index 32428ad..40732cc 100644
--- a/src/TodoList.js
+++ b/src/components/TodoList.js
@@ -1,11 +1,13 @@
import React from "react";
import TodoListItem from "./TodoListItem";
+import style from './TodoList.module.css'
+import PropTypes from 'prop-types'
const TodoList = ({ todoState, onRemoveTodo }) => {
return (
-
+
{todoState?.map((todo) => {
return (
@@ -17,4 +19,9 @@ const TodoList = ({ todoState, onRemoveTodo }) => {
)
}
+TodoList.prototype = {
+ todoState: PropTypes.array,
+ onRemoveTodo: PropTypes.func
+}
+
export default TodoList
\ No newline at end of file
diff --git a/src/components/TodoList.module.css b/src/components/TodoList.module.css
new file mode 100644
index 0000000..282b5ef
--- /dev/null
+++ b/src/components/TodoList.module.css
@@ -0,0 +1,4 @@
+.divTodoList {
+ display: flex;
+ justify-content: center;
+}
\ No newline at end of file
diff --git a/src/components/TodoListItem.js b/src/components/TodoListItem.js
new file mode 100644
index 0000000..013311a
--- /dev/null
+++ b/src/components/TodoListItem.js
@@ -0,0 +1,20 @@
+import React from "react";
+import style from "./TodoListItem.module.css"
+import PropTypes from 'prop-types'
+
+const TodoListItem = ({ todo, onRemoveTodo }) => {
+
+ return (
+ -
+ {todo.title + ' '}
+
+
+ )
+}
+
+TodoListItem.prototype = {
+ todo: PropTypes.string,
+ onRemoveTodo: PropTypes.func
+}
+
+export default TodoListItem
diff --git a/src/components/TodoListItem.module.css b/src/components/TodoListItem.module.css
new file mode 100644
index 0000000..fff1a92
--- /dev/null
+++ b/src/components/TodoListItem.module.css
@@ -0,0 +1,8 @@
+.listItem {
+ color: blue !important;
+ margin-bottom: 10%;
+}
+
+.removeButton {
+ background-color: white;
+}
\ No newline at end of file