Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace Typography with Text component in gas-timing.compon…
…ent.js (#27053) ## **Description** This pull request replaces the `Typography` component with the new `Text` component in the file `ui/pages/confirmations/components/gas-timing/gas-timing.component.js`. This change is part of the ongoing effort to migrate from the old `Typography` component to the new `Text` component across the MetaMask extension codebase. The main improvements in this change are: 1. Consistency with the new design system 2. Better maintainability by using the latest component library 3. Improved performance due to the optimized `Text` component Devin Run Link: https://preview.devin.ai/devin/d0382f35dd004ffba790f08bbd5ffc9c [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27053?quickstart=1) ## **Related issues** Partially Fixes: #17670 ## **Manual testing steps** 1. Go to the latest build of storybook in this PR 2. Navigate to the GasTiming component 3. Verify that the component renders correctly with the new Text component 4. Check that all text styles and layouts are preserved ## **Screenshots/Recordings** ### **Before** <img width="757" alt="Screenshot 2024-09-11 at 8 40 05 AM" src="https://github.com/user-attachments/assets/ad1277fd-1e54-4a0d-a5d0-cc2ccb314c9a"> ### **After** <img width="1512" alt="Screenshot 2024-09-11 at 8 43 58 AM" src="https://github.com/user-attachments/assets/e7d94fa3-caea-4af9-b525-ee5914dd9089"> <img width="1510" alt="Screenshot 2024-09-11 at 8 44 35 AM" src="https://github.com/user-attachments/assets/84759078-fe2b-4cc1-be7e-29ef43eda8c5"> ## **Pre-merge author checklist** - [X] I've followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [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](https://jsdoc.app/) format if applicable - [X] I've applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] 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. If you have any feedback, you can leave comments in the PR and I'll address them in the app! --------- Co-authored-by: georgewrmarshall <[email protected]>
- Loading branch information