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(radio): add component #448

Merged
merged 10 commits into from
Nov 17, 2018
Merged

feat(radio): add component #448

merged 10 commits into from
Nov 17, 2018

Conversation

moog16
Copy link

@moog16 moog16 commented Nov 15, 2018

fixes #157

@codecov-io
Copy link

codecov-io commented Nov 15, 2018

Codecov Report

Merging #448 into rc7.0 will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##            rc7.0     #448      +/-   ##
==========================================
+ Coverage   96.56%   96.65%   +0.09%     
==========================================
  Files          57       59       +2     
  Lines        1923     1975      +52     
  Branches      226      232       +6     
==========================================
+ Hits         1857     1909      +52     
  Misses         66       66
Impacted Files Coverage Δ
packages/radio/NativeControl.js 100% <100%> (ø)
packages/radio/index.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00c6bbd...ef6203a. Read the comment docs.

Copy link
Contributor

@bonniezhou bonniezhou left a comment

Choose a reason for hiding this comment

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

Also add radio to main README


const NativeControl = (props) => {
const {
setRippleActivator,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we replace this with rippleActivatorRef similar to how it is in Checkbox?

const children = React.Children.only(this.props.children);
const updatedProps = Object.assign({}, children.props, {
disabled: this.state.disabled,
setRippleActivator: this.setRippleActivator,
Copy link
Contributor

Choose a reason for hiding this comment

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

we can pass the rippleActivator as a ref directly to NativeControl (see comment above)

Copy link
Contributor

@bonniezhou bonniezhou left a comment

Choose a reason for hiding this comment

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

remove comment, otherwise LGTM

}

setRippleActivator = (element) => this.rippleActivator = element;
// setRippleActivator = (element) => this.rippleActivator = element;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove comment

@moog16 moog16 merged commit ce6bf5c into rc7.0 Nov 17, 2018
@moog16 moog16 deleted the feat/radio/add-component branch November 17, 2018 00:45
moog16 pushed a commit that referenced this pull request Nov 20, 2018
moog16 pushed a commit that referenced this pull request Nov 20, 2018
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