Skip to content

Conversation

@github-actions
Copy link
Contributor

This PR cherry-picks #13590

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

fixes: #12857 

## **Description**

This PR corrects a linting issue and accidental typo in two files which
could cause our banner to render full width instead of with the intended
marginHorizontal.

We can see that both files where this typo exists has corresponding
references to this style which will be affected (by not being applied).
The codebase has been searched for all instances and these two were
flagged. It's obvious by looking at the two changes that they need to be
camelCase

## **Related issues**

Fixes:

## **Manual testing steps**

1. Trigger STX migration and use ApproveTransactionReview by using the
testdapp in mobile to deploy a smart contract.
2. Ensure that the Smart TransactionMigrationBanner displays with proper
margin and does not take up full width in this view. See screenshots
where BEFORE is the existing state with the typo causing the banner to
not display properly in the TransactionReview and the
ApproveTransactionReview, views and the AFTER is with the fix to use
camelCase as intended.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<img width="300" alt="STXBannerFullWidth"
src="https://github.com/user-attachments/assets/fcdcd746-3a6c-45d3-9b99-426a2650c43f"
/>

### **After**

<img width="300" alt="STXBannerMargin"
src="https://github.com/user-attachments/assets/47ddc977-b517-4cd4-84e0-c3a9ef4ef8b4"
/>

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.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-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.
@MarioAslau MarioAslau marked this pull request as ready for review February 20, 2025 17:27
@MarioAslau MarioAslau requested a review from a team as a code owner February 20, 2025 17:27
@github-actions
Copy link
Contributor Author

github-actions bot commented Feb 20, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 2cefa4a
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/d65e9705-2116-4912-9ac2-c064d7f94a8e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@httpJunkie httpJunkie merged commit 9ce35c7 into release/7.41.0 Feb 20, 2025
3 of 5 checks passed
@httpJunkie httpJunkie deleted the chore/cherry-pick-13590 branch February 20, 2025 17:36
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants