diff --git a/apps/wallet/src/ui/app/components/ledger/ConnectLedgerModal.tsx b/apps/wallet/src/ui/app/components/ledger/ConnectLedgerModal.tsx index 524a7a15898..9b0020b1185 100644 --- a/apps/wallet/src/ui/app/components/ledger/ConnectLedgerModal.tsx +++ b/apps/wallet/src/ui/app/components/ledger/ConnectLedgerModal.tsx @@ -4,18 +4,9 @@ import { ampli } from '_src/shared/analytics/ampli'; import { useIotaLedgerClient } from '_components'; -import { Button } from '_src/ui/app/shared/ButtonUI'; -import { - Dialog, - DialogContent, - DialogFooter, - DialogHeader, - DialogTitle, -} from '_src/ui/app/shared/Dialog'; -import { Text } from '_src/ui/app/shared/text'; import { useState } from 'react'; - -import { Link } from '../../shared/Link'; +import { Button, ButtonType, Dialog, DialogBody, DialogContent, Header } from '@iota/apps-ui-kit'; +import { Link } from 'react-router-dom'; interface ConnectLedgerModalProps { onClose: () => void; @@ -24,7 +15,7 @@ interface ConnectLedgerModalProps { } export function ConnectLedgerModal({ onClose, onConfirm, onError }: ConnectLedgerModalProps) { - const [isConnectingToLedger, setConnectingToLedger] = useState(false); + const [, setConnectingToLedger] = useState(false); const { connectToLedger } = useIotaLedgerClient(); const onContinueClick = async () => { @@ -48,68 +39,62 @@ export function ConnectLedgerModal({ onClose, onConfirm, onError }: ConnectLedge } }} > - - - Connect Ledger Wallet - -
-
- -
-
- + +
+ +
+
+ +
+ Connect your ledger to your computer, unlock it, and launch the IOTA app. Click Continue when done. - -
- - Need more help?  - - - ampli.viewedLedgerTutorial()} - text="View tutorial." - color="heroDark" - /> - + +
+ Need more help? + ampli.viewedLedgerTutorial()} + className="text-body-lg text-primary-30 no-underline" + target="_blank" + rel="noreferrer" + > + View tutorial. + +
+
+
-
- -
-
-
+
); } -// TODO: We should probably use a loader like @svgr/webpack so that we can provide SVG files -// and have them be automatically importable in React components. From playing around with -// this, there seems to be an issue where TypeScript bindings aren't correctly generated -// (see https://github.com/gregberge/svgr/pull/573) function LedgerLogo() { return ( );