metamask-extension
metamask-extension copied to clipboard
refactor: replace typography with text component in creation-successful.js
Description
Migrated the Typography
component to the Text
component in the creation-successful.js
file. This change is part of the ongoing effort to replace the deprecated Typography
component with the new Text
component across the codebase.
-
What is the reason for the change?
- The
Typography
component is deprecated and needs to be replaced with the newText
component to ensure consistency and maintainability in the codebase.
- The
-
What is the improvement/solution?
- Replaced all instances of the
Typography
component with the equivalentText
component in thecreation-successful.js
file. Updated the import statements and adjusted the props accordingly.
- Replaced all instances of the
Devin Preview Link : https://preview.devin.ai/devin/5831161584324481b1fa0cf772bf56bb
Related issues
Partially Fixes: https://github.com/MetaMask/metamask-extension/issues/17670
Manual testing steps
- Go to the latest build of storybook in this PR
- Verify that the
CreationSuccessful
component renders correctly without any visual regressions. - Ensure that the text and layout are consistent with the "before" state.
Screenshots/Recordings
Before
After
Pre-merge author checklist
- [X] I’ve followed MetaMask Coding Standards.
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using JSDoc format if applicable
- [X] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
Pre-merge reviewer checklist
- [x] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.