-
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
Showing
20 changed files
with
186 additions
and
129 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
6 changes: 3 additions & 3 deletions
6
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,13 +1,13 @@ | ||
import { WarningLabel } from '@app/components/warning-label'; | ||
import { Callout } from '@app/ui/components/callout/callout'; | ||
|
||
interface PsbtRequestSighashWarningLabelProps { | ||
origin: string; | ||
} | ||
export function PsbtRequestSighashWarningLabel({ origin }: PsbtRequestSighashWarningLabelProps) { | ||
return ( | ||
<WarningLabel title="Be careful with this transaction" width="100%"> | ||
<Callout variant="warning" title="Be careful with this transaction"> | ||
The details of this transaction are not guaranteed and could be modified later. Continue only | ||
if you trust {origin} | ||
</WarningLabel> | ||
</Callout> | ||
); | ||
} |
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
6 changes: 3 additions & 3 deletions
6
src/app/features/stacks-transaction-request/post-condition-mode-warning.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,17 +1,17 @@ | ||
import { PostConditionMode } from '@stacks/transactions'; | ||
|
||
import { WarningLabel } from '@app/components/warning-label'; | ||
import { usePostConditionModeState } from '@app/store/transactions/post-conditions.hooks'; | ||
import { Callout } from '@app/ui/components/callout/callout'; | ||
|
||
export function PostConditionModeWarning(): React.JSX.Element | null { | ||
const mode = usePostConditionModeState(); | ||
|
||
if (mode !== PostConditionMode.Allow) return null; | ||
|
||
return ( | ||
<WarningLabel mb="space.05" title="This transaction is not secure" width="100%"> | ||
<Callout variant="warning" mb="space.05" title="This transaction is not secure"> | ||
If you confirm, you allow it to transfer any of your tokens. Only confirm if you trust and | ||
have verified the contract. | ||
</WarningLabel> | ||
</Callout> | ||
); | ||
} |
11 changes: 5 additions & 6 deletions
11
src/app/pages/bitcoin-contract-request/components/bitcoin-contract-request-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,19 +1,18 @@ | ||
import { BitcoinContractRequestSelectors } from '@tests/selectors/bitcoin-contract-request.selectors'; | ||
|
||
import { WarningLabel } from '@app/components/warning-label'; | ||
import { Callout } from '@app/ui/components/callout/callout'; | ||
|
||
export function BitcoinContractRequestWarningLabel(props: { appName?: string }) { | ||
const { appName } = props; | ||
const title = `Do not proceed unless you trust ${appName ?? 'Unknown'}!`; | ||
|
||
return ( | ||
<WarningLabel | ||
title={title} | ||
width="100%" | ||
<Callout | ||
data-testid={BitcoinContractRequestSelectors.BitcoinContractWarningLabel} | ||
variant="warning" | ||
title={`Do not proceed unless you trust ${appName ?? 'Unknown'}!`} | ||
> | ||
By signing the contract YOU AGREE TO LOCK YOUR BITCOIN with {appName} into a contract where it | ||
will remain until a triggering event will release it. | ||
</WarningLabel> | ||
</Callout> | ||
); | ||
} |
15 changes: 0 additions & 15 deletions
15
src/app/pages/send/send-crypto-asset-form/family/bitcoin/components/testnet-btc-message.tsx
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.