Skip to content

Conversation

@timmydoza
Copy link
Contributor

@timmydoza timmydoza commented Nov 8, 2019

This PR refactors the <Controls /> component.

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

  • NA

Description

This PR moves each button from the Controls component into their own component. Each button now has their own component file and their own test file. This simplifies the code and the tests, but it also prevents unnecessary renders of the buttons in the browser.

Burndown

Before review

  • Updated CHANGELOG.md if necessary
  • Added unit tests if necessary
  • Updated affected documentation
  • Verified locally with npm test
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Before merge

  • Got one or more +1s
  • Re-tested if necessary

@timmydoza timmydoza self-assigned this Nov 8, 2019
Copy link
Collaborator

@charliesantos charliesantos left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

@timmydoza timmydoza merged commit d0d88b7 into development Nov 11, 2019
@timmydoza timmydoza deleted the refactor-controls-component branch November 26, 2019 22:16
timmydoza pushed a commit that referenced this pull request Mar 6, 2020
* Refactor Controls component

* Update test language
timmydoza pushed a commit that referenced this pull request Sep 30, 2020
…ss-tests

Feature/design refresh fix cypress tests
uriasn pushed a commit to Mastermind-com/twilio-video-app-react that referenced this pull request Oct 6, 2020
* Refactor Controls component

* Update test language
uriasn pushed a commit to Mastermind-com/twilio-video-app-react that referenced this pull request Oct 6, 2020
* Refactor Controls component

* Update test language
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.

4 participants