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

feat: add Lifecycle Statuses to Earn #1928

Merged
merged 90 commits into from
Feb 7, 2025
Merged

feat: add Lifecycle Statuses to Earn #1928

merged 90 commits into from
Feb 7, 2025

Conversation

dschlabach
Copy link
Contributor

@dschlabach dschlabach commented Feb 6, 2025

What changed? Why?
This PR adds LifecycleStatuses to Earn via the useLifecycleStatus hook. It includes lifecycle statuses for changing the amount in the text input, as well as surfaces all relevant lifecycle statuses from the underlying Transaction component.

Notes to reviewers

How has it been tested?

cpcramer
cpcramer previously approved these changes Feb 6, 2025
@@ -35,6 +36,8 @@ export type EarnContextType = {
withdrawAmount: string;
setWithdrawAmount: (amount: string) => void;
withdrawCalls: Call[];
lifecycleStatus: LifecycleStatus;
updateLifecycleStatus: (status: LifecycleStatus) => void;
Copy link
Contributor

@alessey alessey Feb 6, 2025

Choose a reason for hiding this comment

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

updateLifecycleStatus: (status: LifecycleStatusUpdate<LifecycleStatus>) => void

@dschlabach dschlabach merged commit a200032 into main Feb 7, 2025
16 checks passed
@dschlabach dschlabach deleted the dms/earn-lifecycle branch February 7, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Development

Successfully merging this pull request may close these issues.

5 participants