-
-
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.
fixup! feat(suite): Implementation of the update icons in QuickAction…
…s bar
- Loading branch information
1 parent
441999e
commit 80d4082
Showing
7 changed files
with
27 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { PassphraseTypeCard } from './components/PassphraseTypeCard/PassphraseTypeCard'; | ||
export { ConfirmOnDevice } from './components/ConfirmOnDevice/ConfirmOnDevice'; | ||
export { mapTrezorModelToIcon } from './utils/mapTrezorModelToIcon'; |
10 changes: 10 additions & 0 deletions
10
packages/product-components/src/utils/mapTrezorModelToIcon.ts
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,10 @@ | ||
import { IconName } from '@trezor/components'; | ||
import { DeviceModelInternal } from '@trezor/connect'; | ||
|
||
export const mapTrezorModelToIcon: Record<DeviceModelInternal, IconName> = { | ||
[DeviceModelInternal.T1B1]: 'trezorModelOneFilled', | ||
[DeviceModelInternal.T2T1]: 'trezorModelTFilled', | ||
[DeviceModelInternal.T2B1]: 'trezorSafe3Filled', | ||
[DeviceModelInternal.T3B1]: 'trezorSafe3Filled', | ||
[DeviceModelInternal.T3T1]: 'trezorSafe5Filled', | ||
}; |
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
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