-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(suite): add promo banner for wallet remember into receive form
- Loading branch information
1 parent
b616726
commit a710f15
Showing
6 changed files
with
65 additions
and
29 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
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
28 changes: 28 additions & 0 deletions
28
packages/suite/src/views/wallet/receive/components/ConnectDevicePromo.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,28 @@ | ||
import { Columns, Image, Rows, Text, Warning } from '@trezor/components'; | ||
import { useSelector } from '../../../../hooks/suite'; | ||
import { selectDevice } from '@suite-common/wallet-core'; | ||
import { DEFAULT_FLAGSHIP_MODEL } from '@suite-common/suite-constants'; | ||
|
||
export const ConnectDevicePromo = () => { | ||
const selectedDevice = useSelector(selectDevice); | ||
const selectedDeviceModelInternal = | ||
selectedDevice?.features?.internal_model || DEFAULT_FLAGSHIP_MODEL; | ||
|
||
return ( | ||
<Warning variant="warning" withIcon={false}> | ||
<Columns alignItems="center" justifyContent="space-between" gap={12} flex={1}> | ||
<Rows alignItems="start"> | ||
<Text typographyStyle="highlight" variant="warning"> | ||
Receive address can’t be verified | ||
</Text> | ||
<Text typographyStyle="titleSmall"> | ||
Verify on Trezor to confirm receive address. Continuing without confirming | ||
isn’t recommended. | ||
</Text> | ||
</Rows> | ||
|
||
<Image alt="Trezor" image={`TREZOR_${selectedDeviceModelInternal}`} /> | ||
</Columns> | ||
</Warning> | ||
); | ||
}; |
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,3 +1,3 @@ | ||
import { DeviceModelInternal } from '@trezor/connect'; | ||
|
||
export const DEFAULT_FLAGSHIP_MODEL = DeviceModelInternal.T2T1; | ||
export const DEFAULT_FLAGSHIP_MODEL = DeviceModelInternal.T3T1; |