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

Add defaultProps and propTypes to all components #47

Merged
merged 2 commits into from
Jul 6, 2020
Merged

Add defaultProps and propTypes to all components #47

merged 2 commits into from
Jul 6, 2020

Conversation

wiljwang
Copy link
Collaborator

Add defaultProps and propTypes to Calendar, CalendarField, EventWindow, Question, StaticHeader, SubpageOuter, and MemberCard. Closes #36.

Copy link
Collaborator

@christopherhafke christopherhafke left a comment

Choose a reason for hiding this comment

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

LGTM!

};

StaticHeader.propTypes = {
children: PropTypes.string
Copy link
Collaborator

Choose a reason for hiding this comment

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

The code here is kind of strange, not sure it's written this way. In general, we'd expect children to be just anything renderable (i.e. PropTypes.node), but here I agree that a string is what we want.

@wiljwang wiljwang merged commit a043fcb into dev Jul 6, 2020
@wiljwang wiljwang deleted the develop branch August 1, 2020 03:22
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.

Add defaultProps and propTypes for each component
2 participants