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

props children #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

props children #43

wants to merge 1 commit into from

Conversation

EdDevs2503
Copy link

Little change with props children use in the circle

@EdDevs2503
Copy link
Author

Props Children merged

@@ -61,12 +61,17 @@ export class Circle extends Component<CircleProps, CircleState> {
const transition = animate ? `stroke-dashoffset ${animationDuration} ease-out` : undefined;
const strokeLinecap = roundedStroke ? 'round' : 'butt';
const svgSize = responsive ? '100%' : size;

const children = this.props.children
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add this to the existing destructuring above?

@zzarcon
Copy link
Owner

zzarcon commented Feb 14, 2020

Thanks for the PR @EdDevs2503 !

Can you add a unit test to make sure we render the children when they are given? thanks!

@zzarcon
Copy link
Owner

zzarcon commented Feb 14, 2020

We should also add children prop to CircleProps

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