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

issue-18714: Replaced deprecated constants with enum in EthSignModal and HoldToRevealModal Component #19499

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

surajgjadhav
Copy link
Contributor

Explanation

Issue link: #18714
Replaced deprecated constants with enum in eth-sign-modal.js and hold-to-reveal-modal.js
Constants replaced with enum:
DISPLAY -> Display
FLEX_DIRECTION -> FlexDirection
SEVERITIES -> Severity

Screenshots/Screencaps

Before

eth-sign-modal.js:
EthSignModal-before

hold-to-reveal-modal.js:
holdToRevealType-before

After

eth-sign-modal.js:
EthSignModal-after

hold-to-reveal-modal.js:
holdToRevealType-after

Manual Testing Steps

  • run yarn storybook
  • open localhost:6006 in browser
  • Search for EthSignModal and HoldToRevealModalcomponent

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@surajgjadhav surajgjadhav requested a review from a team as a code owner June 7, 2023 17:28
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2023

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Jun 7, 2023
@georgewrmarshall georgewrmarshall requested review from georgewrmarshall and garrettbear and removed request for hmalik88 June 7, 2023 17:45
Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work on the story 💯 Thanks for your contribution @surajgjadhav

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #19499 (bd1dfad) into develop (789779f) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop   #19499      +/-   ##
===========================================
- Coverage    70.04%   70.03%   -0.01%     
===========================================
  Files          962      962              
  Lines        36875    36875              
  Branches      9468     9468              
===========================================
- Hits         25826    25824       -2     
- Misses       11049    11051       +2     
Impacted Files Coverage Δ
...onents/app/modals/eth-sign-modal/eth-sign-modal.js 45.16% <ø> (ø)
...odals/hold-to-reveal-modal/hold-to-reveal-modal.js 100.00% <ø> (ø)

... and 2 files with indirect coverage changes

Copy link
Member

@NidhiKJha NidhiKJha left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for your contribution 😄

@NidhiKJha NidhiKJha merged commit 6ede042 into MetaMask:develop Jun 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external-contributor team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants