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

Organize doc menu into groups #110

Merged
merged 1 commit into from
Nov 19, 2015
Merged

Conversation

levithomason
Copy link
Member

image

const isQueryMatch = new RegExp(this.state.query, 'i').test(name);
return isParent && isQueryMatch;
});
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Pulled menu item filtering into separate methods.

@levithomason levithomason force-pushed the feature/menu-hierarchy branch from 85286db to b210c4a Compare November 16, 2015 06:47
});
}

getComponentsByType = type => {
Copy link
Member Author

Choose a reason for hiding this comment

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

This method builds a submenu for each section, like:

Elements

  • Button

Only parent elements are included in the menu. For instance, Modal, but not its child components ModalHeader, ModalContent, etc.

@eanplatter
Copy link
Contributor

🍂

levithomason added a commit that referenced this pull request Nov 19, 2015
@levithomason levithomason merged commit 578963f into master Nov 19, 2015
@levithomason levithomason deleted the feature/menu-hierarchy branch November 19, 2015 17:36
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