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

feat(select-inputs): let user override customized components #70

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

pa3
Copy link
Contributor

@pa3 pa3 commented Sep 18, 2018

Summary

Let user override pre-styled components in *SelectInput-family of components.

Description

My use case for that is to show SearchIcon in AsyncSelectInput instead of default DropdownIndicator.

@pa3 pa3 requested review from dferber90 and lufego September 18, 2018 09:25
@lufego lufego removed their request for review September 18, 2018 09:27
Copy link
Contributor

@dferber90 dferber90 left a comment

Choose a reason for hiding this comment

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

👍

...customizedComponents,
...this.props.components,
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe I am just not getting the naming here. Customized are the ones you pass in? props.components are the ones the parent component passes as a default? Or the other way round? I guess that's why we swap the spread?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Other way around. customizedComponents are those which customizied (compared to the defaults used by react-select) by ui-kit, and props.components are coming from the user of ui-kit SelectInput.

Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

Got it. Thanks.

@pa3 pa3 merged commit bc7d2f0 into master Sep 18, 2018
@dferber90 dferber90 deleted the pcm-782-override-select-input branch October 4, 2018 06:50
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.

3 participants