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

Make Button label prop type required #123

Merged
merged 1 commit into from
Sep 30, 2021
Merged

Make Button label prop type required #123

merged 1 commit into from
Sep 30, 2021

Conversation

ftzi
Copy link
Contributor

@ftzi ftzi commented Sep 30, 2021

Overview

As there is

label: PropTypes.string.isRequired,

Test Plan

As there is `label: PropTypes.string.isRequired`
@ftzi
Copy link
Contributor Author

ftzi commented Sep 30, 2021

Also, I would change

const DialogButton: React.FC<DialogButtonProps> = (props) => {

to

const DialogButton = (props: DialogButtonProps): JSX.Element => { ... }

to avoid passing children to it, as I did by mistake.

I ain't doing it in a PR as you may not like it.

Copy link
Owner

@mmazzarolo mmazzarolo left a comment

Choose a reason for hiding this comment

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

LGTM.

@mmazzarolo
Copy link
Owner

I ain't doing it in a PR as you may not like it.

Let's wait for this, we're also planning to do a refactroing

@mmazzarolo mmazzarolo merged commit e096d6b into mmazzarolo:master Sep 30, 2021
github-actions bot pushed a commit that referenced this pull request Sep 30, 2021
## [9.1.1](v9.1.0...v9.1.1) (2021-09-30)

### Bug Fixes

* Make Button label prop type required ([#123](#123)) ([e096d6b](e096d6b))
@github-actions
Copy link

🎉 This PR is included in version 9.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ftzi ftzi deleted the patch-1 branch September 30, 2021 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants