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/list as array prop #6

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

Conversation

hanabalon
Copy link

No description provided.

if (React.Children.count(children) !== 1) return;
const { name, allowMulti } = children.props;
const { options } = this.props;
if (options !== 1) return;
Copy link

Choose a reason for hiding this comment

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

options.length > 1

const { name, allowMulti } = children.props;
const { options } = this.props;
if (options !== 1) return;
const { name, allowMulti } = options;
Copy link

Choose a reason for hiding this comment

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

options[0]

};

AdvanceSearchBar.defaultProps = {
dar: false,
Copy link

@qrosmeli qrosmeli Mar 2, 2020

Choose a reason for hiding this comment

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

dark?


export {
AdvanceSearchBar,
InputOption
AdvanceSearchBar
Copy link

Choose a reason for hiding this comment

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

Qué tal si dejamos esto como export default?

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