MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.17k stars 1.12k forks source link

feat: conditionally display stake/earn text based on pooled staking feature flag #12261

Closed amitabh94 closed 1 week ago

amitabh94 commented 1 week ago

Description

Updates StakeButton component to show different text based on whether pooled staking is enabled. Shows "earn" when pooled staking is active, and "stake" when using traditional staking.

Manual testing steps

  1. Set export MM_POOLED_STAKING_UI_ENABLED=true in your local .js.env file
  2. Go to Homepage and you should see 'Earn' CTA
  3. Disable the flag in .js.env and then go to homepage , and now you should see 'Stake' CTA

Screenshots/Recordings

Before

image

After

image

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 1 week ago

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.

github-actions[bot] commented 1 week ago

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: c7993ae5651f69119830eca2da9b057d774e02f4 Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/651f0f58-ef3a-4f40-b04f-b370919cb210

[!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
github-actions[bot] commented 1 week ago

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 07f09015328725ada73f3b77d89c4b8e0605f89f Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/dffcc36a-99be-449d-8369-7f6ac83ad0bf

[!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
sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
66.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud