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

Chore/accordion item title refactor #101

Merged
merged 5 commits into from
Jun 11, 2018

Conversation

ryami333
Copy link
Contributor

@ryami333 ryami333 commented Jun 6, 2018

An effort to shift all of the store/container logic to the 'wrapper' and let the 'dumb' component deal only with UI and interaction. So basically, the wrapper passes it all of the props that it needs, no more, no less.

Does not require a release because there is no user-land changes.

Will move on to accordion-item-body


setExpanded(key: string | number, expanded: boolean) {
return this.setState(state => ({
setExpanded = (key: string | number, expanded: boolean) =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ran into a javascript context issue where this didn't equal what I wanted it to equal, so using arrow functions here to bind the correct context.

Copy link
Contributor

@vincentaudebert vincentaudebert 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. Thanks Mitch

@vincentaudebert vincentaudebert merged commit facecfa into master Jun 11, 2018
@ryami333 ryami333 deleted the chore/accordion-item-title-refactor branch July 21, 2018 00:48
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.

None yet

2 participants