-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(connect): get rid of latest bridge version logic
- Loading branch information
Showing
10 changed files
with
66 additions
and
76 deletions.
There are no files selected for viewing
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
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
42 changes: 42 additions & 0 deletions
42
packages/suite/src/views/suite/bridge-deprecated/index.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,42 @@ | ||
import { Button, Link } from '@trezor/components'; | ||
import { UNINSTALL_BRIDGE_URL } from '@trezor/urls'; | ||
import { goto } from 'src/actions/suite/routerActions'; | ||
import { Metadata, Modal, Translation } from 'src/components/suite'; | ||
import { useDispatch, useLayout } from 'src/hooks/suite'; | ||
|
||
export const BridgeDeprecated = () => { | ||
const dispatch = useDispatch(); | ||
|
||
const goToWallet = () => dispatch(goto('wallet-index')); | ||
|
||
useLayout('Bridge'); | ||
|
||
return ( | ||
<Modal | ||
heading={'Unsupported Trezor Bridge version detected'} | ||
description={ | ||
<Translation | ||
id="TR_BRIDGE_UNINSTALL_INSTRUCTIONS" | ||
values={{ | ||
link: <Link href={UNINSTALL_BRIDGE_URL} variant="underline" />, | ||
}} | ||
/> | ||
} | ||
isHeadingCentered | ||
bottomBarComponents={ | ||
<> | ||
<Button | ||
icon="caretLeft" | ||
variant="tertiary" | ||
onClick={() => goToWallet()} | ||
data-testid="@bridge/goto/wallet-index" | ||
> | ||
<Translation id="TR_TAKE_ME_BACK_TO_WALLET" /> | ||
</Button> | ||
</> | ||
} | ||
> | ||
<Metadata title="Bridge | Trezor Suite" /> | ||
</Modal> | ||
); | ||
}; |