From 6b2c17777ca26f71d06e625a37a504da9bf25b8a Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Thu, 24 Nov 2022 20:08:17 -0300 Subject: [PATCH] added default value to task description input --- .../ClockifyTaskForm/ClockifyTaskForm.jsx | 23 +++++++++++++++---- .../ClockifyTaskForm/clockify-task-form.css | 6 ++++- .../clockify-task-form.css.map | 2 +- .../ClockifyTaskForm/clockify-task-form.scss | 7 +++++- 4 files changed, 31 insertions(+), 7 deletions(-) diff --git a/src/pages/Main/ClockifyTaskForm/ClockifyTaskForm.jsx b/src/pages/Main/ClockifyTaskForm/ClockifyTaskForm.jsx index 16be1f6..9d7cf7a 100644 --- a/src/pages/Main/ClockifyTaskForm/ClockifyTaskForm.jsx +++ b/src/pages/Main/ClockifyTaskForm/ClockifyTaskForm.jsx @@ -18,6 +18,7 @@ const ClockifyTaskForm = ({timerOn, setTimerOn, signedIn, apiKey, setApiKey, tas const descriptionInput = useRef("") const [loading, setLoading] = useState(true) + const [suggestProjectName, setSuggestProjectName] = useState() let newTask = useRef("") const [addingNewTask, setAddingNewTask] = useState(false) @@ -242,7 +243,10 @@ const ClockifyTaskForm = ({timerOn, setTimerOn, signedIn, apiKey, setApiKey, tas