From 11ce47d574e299015bb4df9abf8c1a7bd439864d Mon Sep 17 00:00:00 2001 From: Denys Shurubura Date: Thu, 2 Nov 2023 16:59:17 +0200 Subject: [PATCH] fixes --- src/App.tsx | 62 +++++++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b9c32c87ed..e21932d2ad 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -63,40 +63,46 @@ export const App = () => { onSubmit={submitHandler} >
- { - setTitle(event.target.value); - setTitleError(false); - }} - required - /> + {titleError && (Please enter a title)}
- + {userError && (Please choose a user)}