-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update screens for deposit and withdrawal flows (#821)
Ref #811 Ref #277 Closes #814 Closes #813 This PR updates screens for deposit and withdrawal flows. The "Skeleton" loading screen from both Deposit and Withdraw flows is no longer needed. The new flow adds two steps: - "Opening your wallet for signature" Screen - "Awaiting Transaction" Screen Flow: 1. User initiates deposit: After pressing the Deposit/Withdraw CTAs, the user first sees the “Opening your wallet for signature” screen 2. Display wallet modal 3. Transition to ‘Awaiting Transaction’: Once the wallet modal is prompted, switch to the “Awaiting Transaction” screen while the user completes the signature. 4. Return to dapp: After signing with the wallet, the user returns to your dapp, where the “Awaiting Transaction” screen remains visible as needed. 5. Confirm deposit/withdraw: Once transaction is complete, display the “Deposit received” or "Withdrawal inititated" screens to confirm completion. https://github.com/user-attachments/assets/899263a7-0895-48ba-881e-c61b70e4c32d
- Loading branch information
Showing
15 changed files
with
252 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
dapp/src/components/TransactionModal/ActiveUnstakingStep/BuildTransactionModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react" | ||
import { | ||
Button, | ||
ModalBody, | ||
ModalCloseButton, | ||
ModalHeader, | ||
} from "@chakra-ui/react" | ||
import Spinner from "#/components/shared/Spinner" | ||
import { TextMd } from "#/components/shared/Typography" | ||
|
||
export default function BuildTransactionModal({ | ||
onClose, | ||
}: { | ||
onClose: () => void | ||
}) { | ||
return ( | ||
<> | ||
<ModalCloseButton onClick={onClose} /> | ||
<ModalHeader>Building transaction data...</ModalHeader> | ||
<ModalBody> | ||
<Spinner size="xl" variant="filled" /> | ||
<TextMd>We are building your withdrawal data.</TextMd> | ||
<Button size="lg" width="100%" variant="outline" onClick={onClose}> | ||
Cancel | ||
</Button> | ||
</ModalBody> | ||
</> | ||
) | ||
} |
Oops, something went wrong.