-
-
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.
chore(suite): rework UnreadableDevice troubleshooting
- Loading branch information
Showing
7 changed files
with
157 additions
and
53 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
37 changes: 21 additions & 16 deletions
37
packages/suite/src/components/suite/PrerequisitesGuide/Transport.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,23 +1,28 @@ | ||
import { Translation, TroubleshootingTips } from 'src/components/suite'; | ||
|
||
import { | ||
TROUBLESHOOTING_TIP_SUITE_DESKTOP, | ||
TROUBLESHOOTING_TIP_RESTART_COMPUTER, | ||
TROUBLESHOOTING_TIP_WEBUSB_ENVIRONMENT, | ||
} from 'src/components/suite/troubleshooting/tips'; | ||
|
||
export const Transport = () => ( | ||
// No transport layer (bridge/webUSB) is available | ||
// On web it makes sense to | ||
// - offer downloading Trezor Suite desktop, or | ||
// - use a browser that supports WebUSB | ||
// Desktop app should have Bridge transport layer available as it is built-in, if it is not available we fucked up something. | ||
<TroubleshootingTips | ||
label={<Translation id="TR_TROUBLESHOOTING_DEVICE_NOT_DETECTED" />} | ||
items={[ | ||
TROUBLESHOOTING_TIP_WEBUSB_ENVIRONMENT, | ||
TROUBLESHOOTING_TIP_SUITE_DESKTOP, | ||
TROUBLESHOOTING_TIP_RESTART_COMPUTER, | ||
]} | ||
data-testid="@connect-device-prompt/bridge-not-running" | ||
/> | ||
); | ||
export const Transport = () => { | ||
const items = [ | ||
TROUBLESHOOTING_TIP_WEBUSB_ENVIRONMENT, | ||
TROUBLESHOOTING_TIP_SUITE_DESKTOP, | ||
TROUBLESHOOTING_TIP_RESTART_COMPUTER, | ||
]; | ||
|
||
return ( | ||
// No transport layer (bridge/webUSB) is available | ||
// On web it makes sense to | ||
// - offer downloading Trezor Suite desktop, or | ||
// - use a browser that supports WebUSB | ||
// Desktop app should have Bridge transport layer available as it is built-in, if it is not available we fucked up something. | ||
<TroubleshootingTips | ||
label={<Translation id="TR_TROUBLESHOOTING_DEVICE_NOT_DETECTED" />} | ||
items={items} | ||
data-testid="@connect-device-prompt/bridge-not-running" | ||
/> | ||
); | ||
}; |
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