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/ListToDo.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 'src/ToDo-UI/ListToDo.jsx')
-rw-r--r-- | src/ToDo-UI/ListToDo.jsx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ToDo-UI/ListToDo.jsx b/src/ToDo-UI/ListToDo.jsx index 7c2ccba..c77c64b 100644 --- a/src/ToDo-UI/ListToDo.jsx +++ b/src/ToDo-UI/ListToDo.jsx @@ -143,14 +143,12 @@ export function ListToDos() { const [edit_id, set_edit_id] = useState(-1); const [edit_text, set_edit_text] = useState(""); const [edit_due_date, set_edit_due_date] = useState(""); - const [edit_done, set_edit_done] = useState(false); const [edit_priority, set_edit_priority] = useState("Low"); function handle_open_modal(id, text, due_date, done, priority) { set_edit_id(id); set_edit_text(text); set_edit_due_date(due_date); - set_edit_done(done); set_edit_priority(priority); } function handle_exit_modal() { @@ -159,7 +157,6 @@ export function ListToDos() { set_edit_id(-1); set_edit_text(""); - set_edit_done(false); set_edit_priority("Low"); } function handle_edit_todo() { @@ -168,7 +165,6 @@ export function ListToDos() { id: edit_id, text: edit_text, due_date: edit_due_date, - done: edit_done, priority: edit_priority, }) ); @@ -286,21 +282,6 @@ export function ListToDos() { <label htmlFor="edit-todo-due-date">Due Date</label> </div> </div> - <div className="form-check mb-3"> - <input - className="form-check-input" - type="checkbox" - id="edit-todo-done" - onClick={(e) => set_edit_done(e.target.checked)} - checked={edit_done} - /> - <label - className="form-check-label" - htmlFor="edit-todo-done" - > - Completed - </label> - </div> <div className="form-floating mb-3"> <select className="form-select" |