| 17 | }, []); |
| 18 | |
| 19 | const runCommand = async e => { |
| 20 | e.preventDefault(); |
| 21 | if (!command) { |
| 22 | alert("please enter something"); |
| 23 | return; |
| 24 | } |
| 25 | setCommandOutput("Command in progress"); |
| 26 | setCommandOutput(await APIHelper.runCommand(command)); |
| 27 | const todoList = await APIHelper.getAllTodos(); |
| 28 | setTodos([...todoList]); |
| 29 | } |
| 30 | |
| 31 | const createTodo = async e => { |
| 32 | e.preventDefault(); |
nothing calls this directly
no outgoing calls
no test coverage detected