diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-27 14:26:14 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-27 14:26:14 -0600 |
commit | 19f07e834e68c6924e19589641e5b138b0535e53 (patch) | |
tree | e186ec1980f5e74cb1d4a72903970b907ef7f966 /src/ToDo-UI/NewToDo.jsx | |
parent | e04bff29bf8146bb709a76fc187e0683065e4f03 (diff) | |
download | ToDo-App-FE-19f07e834e68c6924e19589641e5b138b0535e53.tar.gz ToDo-App-FE-19f07e834e68c6924e19589641e5b138b0535e53.zip |
"Done" can now only be changed on table.
Not on "edit to do" or "new to do".
Diffstat (limited to '')
-rw-r--r-- | src/ToDo-UI/NewToDo.jsx | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/ToDo-UI/NewToDo.jsx b/src/ToDo-UI/NewToDo.jsx index 2fd70b8..e81cb4e 100644 --- a/src/ToDo-UI/NewToDo.jsx +++ b/src/ToDo-UI/NewToDo.jsx @@ -42,7 +42,6 @@ export function NewToDo() { const dispatch = useDispatch(); const [new_text, set_new_text] = useState(""); const [new_due_date, set_new_due_date] = useState(""); - const [new_done, set_new_done] = useState(false); const [new_priority, set_new_priority] = useState("Low"); function handle_exit_modal() { @@ -51,7 +50,6 @@ export function NewToDo() { set_new_text(""); set_new_due_date(""); - set_new_done(false); set_new_priority("Low"); } function handle_add_todo() { @@ -59,7 +57,6 @@ export function NewToDo() { add_todo({ text: new_text, due_date: new_due_date, - done: new_done, priority: new_priority, creation_date: new Date().toString(), }) @@ -129,7 +126,7 @@ export function NewToDo() { <div className="form-floating"> <input className="form-control" - type="date" + type="datetime-local" id="new-todo-due-date" placeholder="Due date" onChange={(e) => { @@ -139,17 +136,6 @@ export function NewToDo() { <label htmlFor="new-todo-due-date">Due Date</label> </div> </div> - <div className="form-check mb-3"> - <input - className="form-check-input" - type="checkbox" - id="new-todo-done" - onClick={(e) => set_new_done(e.target.checked)} - /> - <label className="form-check-label" htmlFor="new-todo-done"> - Completed - </label> - </div> <div className="form-floating mb-3"> <select className="form-select" |