-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
solution #1133
base: master
Are you sure you want to change the base?
solution #1133
Conversation
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.
src/App.tsx
Outdated
No posts yet | ||
</div> | ||
{!isLoadingPosts && | ||
userPosts.length === 0 && |
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.
userPosts.length === 0 && | |
!userPosts.length && |
PLS DO THE SAME FOR ALL SUCH CASES IN THE PROJECT
src/components/NewCommentForm.tsx
Outdated
const [values, setValues] = useState<FormValues>(defaultValues); | ||
const [errors, setErrors] = useState<FormErrors>({}); | ||
const [isLoading, setIsLoading] = useState<boolean>(false); | ||
// const [isFormValid, setIsFormValid] = useState(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.
pls remove redundant comments
src/components/PostDetails.tsx
Outdated
<a href="mailto:[email protected]" data-cy="CommentAuthor"> | ||
Misha Hrynko | ||
</a> | ||
{comments.length > 0 && !isCommentsLoading && ( |
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.
{comments.length > 0 && !isCommentsLoading && ( | |
{!!comments.length && !isCommentsLoading && ( |
PLS DO THE SAME FOR ALL SUCH CASES IN THE PROJECT
src/components/PostDetails.tsx
Outdated
<a href="mailto:[email protected]" data-cy="CommentAuthor"> | ||
Misha Hrynko | ||
</a> | ||
{comments.length > 0 && !isCommentsLoading && ( |
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.
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.
Sorry
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.
It's ok 🙂
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.
Well done! ✔️
DEMO LINK