Skip to content
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

my solution #1064

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

viktalfrontend
Copy link

@viktalfrontend viktalfrontend commented Sep 20, 2024

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍
Let's improve your code

  1. This block should be shown only after people have downloaded it
image
  1. Don't need reset filters after clicking on the person
image image image
  1. Fix all linter errors
image

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost done!

setSearchParams(params);
}

function handleQueryChange(event: React.ChangeEvent<HTMLInputElement>) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is important to follow the same way of creating functions, fix it everywhere

Suggested change
function handleQueryChange(event: React.ChangeEvent<HTMLInputElement>) {
const handleQueryChange = (event: React.ChangeEvent<HTMLInputElement>) => {


<PeopleTable />
{!loading && !error && filteredPeople.length === 0 && (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{!loading && !error && filteredPeople.length === 0 && (
{!loading && !error && !filteredPeople.length && (

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants