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

Develop #1066

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

Develop #1066

wants to merge 10 commits into from

Conversation

arthurfujii
Copy link

@arthurfujii arthurfujii marked this pull request as draft September 26, 2024 19:17
@arthurfujii arthurfujii marked this pull request as ready for review September 26, 2024 19:30
Copy link

@jv-aquino jv-aquino left a 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">

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

}),
)
.finally(() => dispatch({ type: 'isReady', payload: true }));
}, []);

Choose a reason for hiding this comment

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

missing useEffect dependency


useEffect(() => {
handleQueryFilterChange();
}, [query]);

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

@jv-aquino
Copy link

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

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