Skip to content

props children#43

Open
edmataDotDev wants to merge 1 commit into
zzarcon:masterfrom
edmataDotDev:Props-Children
Open

props children#43
edmataDotDev wants to merge 1 commit into
zzarcon:masterfrom
edmataDotDev:Props-Children

Conversation

@edmataDotDev

Copy link
Copy Markdown

Little change with props children use in the circle

@edmataDotDev

Copy link
Copy Markdown
Author

Props Children merged

Comment thread src/circle.tsx
const strokeLinecap = roundedStroke ? 'round' : 'butt';
const svgSize = responsive ? '100%' : size;

const children = this.props.children

Copy link
Copy Markdown
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

zzarcon commented Feb 14, 2020

Copy link
Copy Markdown
Owner

Thanks for the PR @EdDevs2503 !

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

@zzarcon

zzarcon commented Feb 14, 2020

Copy link
Copy Markdown
Owner

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.

2 participants