-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react_todo-app #1071
base: master
Are you sure you want to change the base?
react_todo-app #1071
Conversation
I cant understand how to fix it
|
} finally { | ||
setIsSubmiting(false); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider showing an error if the trimmed title is empty.
src/components/Header/Header.tsx
Outdated
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => { | ||
event.preventDefault(); | ||
|
||
setIsSubmiting(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setIsSubmiting(true); |
src/components/Header/Header.tsx
Outdated
const newTitle = title.trim(); | ||
|
||
if (newTitle) { | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try { | |
try { | |
setIsSubmiting(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- let's fix this case
Screen.Recording.2024-10-31.at.11.15.39.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider fixing the previous comment
Feel free to ask for help in the chat
I've already fixed it, but I don't make new deploy of the page, I thought it's not neccesary. So, I made deploy and now everything works correctly. Please check it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 🔥
You have to change your UI |
DEMO LINK