Skip to content

Remove close prop from button (#198)#268

Merged
gnapse merged 1 commit intoDoist:devfrom
rimildeyjsr:remove-close-props-button
Jul 22, 2020
Merged

Remove close prop from button (#198)#268
gnapse merged 1 commit intoDoist:devfrom
rimildeyjsr:remove-close-props-button

Conversation

@rimildeyjsr
Copy link
Copy Markdown
Contributor

@rimildeyjsr rimildeyjsr commented Jul 20, 2020

*remove close prop from button, since it is deprecated
*remove tests checking for unmounting when child with close prop is clicked

Closes #198

Short description

  1. Removed the close prop from the button component file.
  2. After the removal, 2 tests in the modal component were failing
    • the tests were checking for unmounting when a child component with the close prop was clicked - removed those 2 tests since we are removing the close prop from the button

PR Checklist

  • Added tests for bugs / new features
  • Updated docs (storybooks, readme)
  • Described changes in CHANGELOG.md
  • Executed npm run lint and made sure no errors / warnings were shown
  • Executed npm run test and made sure all tests are passing
  • Bumped version in package.json
  • Updated all static build artifacts (npm run build-all)

Versioning

This is a breaking change: the prop has been removed from a component

*remove close prop from button, since it is deprecated
*remove tests checking for unmounting modal component when child(button) with close prop is clicked
@henningmu henningmu requested a review from gnapse July 21, 2020 07:01
Copy link
Copy Markdown
Contributor

@gnapse gnapse left a comment

Choose a reason for hiding this comment

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

@rimildeyjsr this looks good.

I'd take a bit of time to get this merged as I figure out how/when will we release this.

@vishnugopal @henningmu do we have a v6 release in the works? I see we bumped the version to 6 already, but I do not see the release being created yet. Maybe we're on time to add this to the changelog under the latest v6 release and include it there.

I'd ask @rimildeyjsr to add the entry in the changelog but I'm not sure where to put it.

@gnapse
Copy link
Copy Markdown
Contributor

gnapse commented Jul 22, 2020

Update: I'll be approving and merging this, then I'll prepare and create a v6 release to make it all official (the css modules that bumped us to v6 and will include this in that major release).

@gnapse gnapse merged commit 7e044f3 into Doist:dev Jul 22, 2020
@gnapse gnapse mentioned this pull request Jul 22, 2020
4 tasks
@rimildeyjsr
Copy link
Copy Markdown
Contributor Author

@gnapse - Thank you! 😃

@gnapse
Copy link
Copy Markdown
Contributor

gnapse commented Jul 22, 2020

You're welcome!

BTW, an update on my earlier comment, for the record: I took care of including this in the CHANGELOG and run the build, and make it all part of #275. It was then merged and this is part of the v6 release.

@gnapse gnapse added the Released PRs that have been merged and released label Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Released PRs that have been merged and released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PropTypes for Button component do not include 'close'

2 participants