(e)
| 51 | |
| 52 | //functions for journal entries |
| 53 | function handleSubmitJournals(e) { |
| 54 | e.preventDefault(); |
| 55 | |
| 56 | countJournals.current = countJournals.current + 1; //used to determine key for each item in the entryList array |
| 57 | |
| 58 | setEntryList(prevListArray => { |
| 59 | return [ |
| 60 | ...prevListArray, |
| 61 | {rate: rating, description: description, id: countJournals.current} |
| 62 | ]; |
| 63 | }); |
| 64 | |
| 65 | setValue(''); //clears the text area when submitted |
| 66 | } |
| 67 | |
| 68 | return ( |
| 69 | <Tabs aria-label="Different Productivity Tabs"> |
nothing calls this directly
no test coverage detected