-
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
add solution #1131
base: master
Are you sure you want to change the base?
add solution #1131
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.
@@ -1,42 +1,162 @@ | |||
import React from 'react'; | |||
/* eslint-disable @typescript-eslint/indent */ |
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.
/* eslint-disable @typescript-eslint/indent */ |
src/App.tsx
Outdated
No posts yet | ||
</div> | ||
{currentUser && | ||
posts.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.
posts.length === 0 && | |
!posts.length && |
src/App.tsx
Outdated
{currentUser && | ||
!isPostError && | ||
!isPostLoading && | ||
posts.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.
posts.length > 0 && ( | |
!!posts.length && ( |
src/components/NewCommentForm.tsx
Outdated
<button | ||
type="reset" | ||
className="button is-link is-light" | ||
onClick={() => reset()} |
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.
onClick={() => reset()} | |
onClick={reset} |
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.
Good job 👍
DEMO
Everything works correctly, but 2 same tests don`t pass :(