Skip to content

Commit

Permalink
link in transfer notification
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Dec 11, 2024
1 parent cc18225 commit 1ded629
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/hooks/useAllocatedTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function useAllocatedTransfer() {
title: 'Transaction Replaced',
message: `Transaction was ${replacement.reason}. Waiting for new transaction...`,
txHash: replacement.transaction.hash,
chainId,
autoHide: false,
});
},
Expand Down Expand Up @@ -104,6 +105,7 @@ export function useAllocatedTransfer() {
message: `Waiting for transaction submission of ${displayAmount}...`,
stage: 'initiated',
txHash: tempTxId,
chainId,
autoHide: false,
});

Expand All @@ -121,6 +123,7 @@ export function useAllocatedTransfer() {
message: 'Waiting for confirmation...',
stage: 'submitted',
txHash: newHash,
chainId,
autoHide: true,
});

Expand All @@ -139,6 +142,7 @@ export function useAllocatedTransfer() {
message: `Successfully transferred ${displayAmount}`,
stage: 'confirmed',
txHash: newHash,
chainId,
autoHide: false,
});
}
Expand All @@ -156,6 +160,7 @@ export function useAllocatedTransfer() {
title: 'Transaction Rejected',
message: 'You rejected the transaction',
txHash: tempTxId,
chainId,
autoHide: true,
});
}
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/hooks/useAllocatedWithdrawal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function useAllocatedWithdrawal() {
title: 'Transaction Replaced',
message: `Transaction was ${replacement.reason}. Waiting for new transaction...`,
txHash: replacement.transaction.hash,
chainId,
autoHide: false,
});
},
Expand Down Expand Up @@ -104,6 +105,7 @@ export function useAllocatedWithdrawal() {
message: `Waiting for transaction submission of ${displayAmount}...`,
stage: 'initiated',
txHash: tempTxId,
chainId,
autoHide: false,
});

Expand All @@ -123,6 +125,7 @@ export function useAllocatedWithdrawal() {
message: 'Waiting for confirmation...',
stage: 'submitted',
txHash: newHash,
chainId,
autoHide: true,
});

Expand All @@ -141,6 +144,7 @@ export function useAllocatedWithdrawal() {
message: `Successfully withdrew ${displayAmount}`,
stage: 'confirmed',
txHash: newHash,
chainId,
autoHide: false,
});
}
Expand All @@ -158,6 +162,7 @@ export function useAllocatedWithdrawal() {
title: 'Transaction Rejected',
message: 'You rejected the transaction',
txHash: tempTxId,
chainId,
autoHide: true,
});
}
Expand Down

0 comments on commit 1ded629

Please sign in to comment.