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

control-bar/filter: fixing behavior & fix spacing (styling) #4534

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

khamui
Copy link
Contributor

@khamui khamui commented Sep 29, 2022

No description provided.

@khamui khamui linked an issue Oct 4, 2022 that may be closed by this pull request
Copy link
Contributor

@goapunk goapunk left a comment

Choose a reason for hiding this comment

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

looks good to me! added a small suggestion


export const ControlBarDropdown = props => {
const { filter: { label, choices, current, icons } } = props
const { filter } = props
const [currentChoiceName, setCurrentChoiceName] = useState(filter.current)

const onSelectFilter = filter => {
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: rename filter to newFilter or selectedFilter so it doesn't clash with the newly introduced const { filter } above?

@khamui khamui force-pushed the kt-2022-09-fix-filter-issue branch from 6a3a05b to d227be4 Compare October 6, 2022 13:02
@khamui khamui changed the title contro-bar/filter: fixing behavior & fix spacing (styling) WIP contro-bar/filter: fixing behavior & fix spacing (styling) Oct 6, 2022
@khamui
Copy link
Contributor Author

khamui commented Oct 6, 2022

wip to fix jstests

@khamui khamui force-pushed the kt-2022-09-fix-filter-issue branch from d227be4 to 394e34a Compare October 6, 2022 13:54
@khamui khamui changed the title WIP contro-bar/filter: fixing behavior & fix spacing (styling) control-bar/filter: fixing behavior & fix spacing (styling) Oct 6, 2022
@khamui khamui requested a review from goapunk October 6, 2022 14:02
@goapunk goapunk merged commit 51e0258 into main Oct 6, 2022
@goapunk goapunk deleted the kt-2022-09-fix-filter-issue branch October 6, 2022 14:57
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.

Ordering filter not working
2 participants