-
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
Develop #1066
base: master
Are you sure you want to change the base?
Develop #1066
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.
Hey Arthur, gj! there are some small useEffect missing dependencies from what i've seen, take a look there before continuing!
function handleQueryChange(e: React.ChangeEvent<HTMLInputElement>) { | ||
setSearchWith({ query: e.target.value || null }); | ||
} | ||
|
||
return ( | ||
<nav className="panel"> | ||
<p className="panel-heading">Filters</p> | ||
|
||
<p className="panel-tabs" data-cy="SexFilter"> |
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.
the best use of BEM here would be panel__tabs (i think)
the exercise might be a little outdated
src/components/PeoplePage.tsx
Outdated
}), | ||
) | ||
.finally(() => dispatch({ type: 'isReady', payload: 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.
missing useEffect dependency
src/components/PeopleTable.tsx
Outdated
|
||
useEffect(() => { | ||
handleQueryFilterChange(); | ||
}, [query]); |
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.
the handle function should also be in the dependencies
oh btw I forgot, there is a small UI mistake also, the headers are staying almost below the nav, try to fix that later plz |
https://arthurfujii.github.io/react_people-table-advanced/