-
-
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): soften FW hash check for other-error
- Loading branch information
Showing
6 changed files
with
74 additions
and
27 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
32 changes: 32 additions & 0 deletions
32
packages/suite/src/components/suite/SecurityCheck/checklistItems.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,32 @@ | ||
import { Translation } from '../Translation'; | ||
import { SecurityChecklistItem } from 'src/views/onboarding/steps/SecurityCheck/types'; | ||
|
||
export const hardFailureChecklistItems: SecurityChecklistItem[] = [ | ||
{ | ||
icon: 'plugs', | ||
content: <Translation id="TR_DISCONNECT_DEVICE" />, | ||
}, | ||
{ | ||
icon: 'hand', | ||
content: <Translation id="TR_AVOID_USING_DEVICE" />, | ||
}, | ||
{ | ||
icon: 'chat', | ||
content: <Translation id="TR_USE_CHAT" values={{ b: chunks => <b>{chunks}</b> }} />, | ||
}, | ||
]; | ||
|
||
export const softFailureChecklistItems: SecurityChecklistItem[] = [ | ||
{ | ||
icon: 'plugs', | ||
content: <Translation id="TR_RECONNECT_YOUR_DEVICE" />, | ||
}, | ||
{ | ||
icon: 'eye', | ||
content: <Translation id="TR_SEE_IF_ISSUE_PERSISTS" />, | ||
}, | ||
{ | ||
icon: 'chat', | ||
content: <Translation id="TR_USE_CHAT" values={{ b: chunks => <b>{chunks}</b> }} />, | ||
}, | ||
]; |
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
11 changes: 3 additions & 8 deletions
11
packages/suite/src/views/onboarding/steps/SecurityCheck/SecurityChecklist.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
7 changes: 7 additions & 0 deletions
7
packages/suite/src/views/onboarding/steps/SecurityCheck/types.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,7 @@ | ||
import { ReactNode } from 'react'; | ||
import { IconName } from '@trezor/components'; | ||
|
||
export type SecurityChecklistItem = { | ||
icon: IconName; | ||
content: ReactNode; | ||
}; |