-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b05f731
commit 988e23f
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
src/app/features/psbt-signer/components/psbt-request-sighash-warning-label.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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { WarningLabel } from '@app/components/warning-label'; | ||
|
||
export function PsbtRequestSighashWarningLabel() { | ||
interface PsbtRequestSighashWarningLabelProps { | ||
origin: string; | ||
} | ||
export function PsbtRequestSighashWarningLabel({ origin }: PsbtRequestSighashWarningLabelProps) { | ||
return ( | ||
<WarningLabel title="Be careful with this transaction" width="100%"> | ||
The details you see here are not guaranteed. Be sure to fully trust your counterparty, who can | ||
later modify this transaction to send or receive other assets from your account, and possibly | ||
even drain it. | ||
The details of this transaction are not guaranteed and could be modified later. Continue only | ||
if you trust {origin} | ||
</WarningLabel> | ||
); | ||
} |
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