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

bugfix: Empty modals when clicking "X" after "Stake" on Earn more rewards tab #4467

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

beths-ledger
Copy link
Contributor

📝 Description

  • re-use account-specific stake flow navigation functions so that we do not need to navigate to stake flow then skip all of the steps that select an account and close the stake flow;
  • Use the stake flow actions directly in the Earn navigator removes the empty navigator modals;
  • Other stake flows unaffected.

❓ Context

✅ Checklist

  • Test coverage
  • Atomic delivery
  • No breaking changes

📸 Demo

Earn dash remains in the background:
image

In-line with the other screens that use the stake flow from the main navigation or the account pages:
image

🚀 Expectations to reach

Please make sure you follow these Important Steps.

Pull Requests must pass the CI and be internally validated in order to be merged.

@changeset-bot
Copy link

changeset-bot bot commented Aug 24, 2023

🦋 Changeset detected

Latest commit: 2104e22

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
live-mobile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ledger-live-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2023 1:08pm
live-common-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2023 1:08pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Aug 25, 2023 1:08pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 25, 2023 1:08pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 25, 2023 1:08pm

Copy link
Contributor

@mitchellv-ledger mitchellv-ledger left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -553,6 +548,11 @@ export default function BaseNavigator() {
options={{ ...TransparentHeaderNavigationOptions, title: "" }}
component={RedirectToOnboardingRecoverFlowScreen}
/>
<Stack.Screen
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason for this move?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that was just a temp change I made to move them closer together in the base navigator so that i could directly compare them in the file easier, but then i decided just to keep it because they are so heavily related and it seems more useful if they are closer

Copy link
Contributor

@sarneijim sarneijim left a comment

Choose a reason for hiding this comment

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

Retested :)

@beths-ledger beths-ledger force-pushed the bugfix/LIVE-9008-empty-modals-earn-stake-flow branch from d900baa to 2104e22 Compare August 25, 2023 13:06
@beths-ledger beths-ledger merged commit c4c16e6 into develop Aug 25, 2023
19 of 21 checks passed
@beths-ledger beths-ledger deleted the bugfix/LIVE-9008-empty-modals-earn-stake-flow branch August 25, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants