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

Switch from defaultProps to default parameters. Any string parameter … #749

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

Charles-Pham
Copy link
Contributor

…which should not be empty is now defaulted to mscaPlaceholder.

ADO-281405

Changelog - "fix:" for bug fixes, "feat:" for features. Read more about Conventional Commits at https://www.conventionalcommits.org/en/v1.0.0/#summary

Description of proposed changes:

Switch all instances of defaultProps to default parameters. In addition, every instance of a parameter which...

  1. Is a string
  2. Isn't content put on the page
  3. Isn't solely passed through to another component
  4. And is not used in any logic (including its mere existence)

Should now default to mscaPlaceholder.

What to test for/How to test

defaultProps warnings should not longer appear. mscaPlaceholder should not appear on any page in the HTML.

Additional Notes

…which should not be empty is now defaulted to mscaPlaceholder.
@Charles-Pham Charles-Pham requested a review from a team as a code owner November 5, 2024 19:43
Copy link

github-actions bot commented Nov 5, 2024

Copy link
Contributor

@jhslater jhslater left a comment

Choose a reason for hiding this comment

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

lgtm

@Charles-Pham Charles-Pham merged commit 3f33b91 into dev Nov 6, 2024
8 checks passed
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