From 6da0fd1115077f5eea0331604bbed3e1110c9f7c Mon Sep 17 00:00:00 2001 From: Nikki Gaudreau Date: Tue, 5 Dec 2023 15:56:24 -0500 Subject: [PATCH 1/8] add ids for testing to onboarding routes --- ui/pages/Onboarding/Tabbed/AddWalletOptions.tsx | 11 +++++++++-- ui/pages/Onboarding/Tabbed/ImportSeed.tsx | 1 + ui/pages/Onboarding/Tabbed/Intro.tsx | 2 ++ .../Onboarding/Tabbed/OnboardingAdditionalWallet.tsx | 1 + ui/pages/Onboarding/Tabbed/SetPassword.tsx | 3 +++ 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ui/pages/Onboarding/Tabbed/AddWalletOptions.tsx b/ui/pages/Onboarding/Tabbed/AddWalletOptions.tsx index fffdfaecbd..5424493774 100644 --- a/ui/pages/Onboarding/Tabbed/AddWalletOptions.tsx +++ b/ui/pages/Onboarding/Tabbed/AddWalletOptions.tsx @@ -7,6 +7,7 @@ import SharedButton from "../../../components/Shared/SharedButton" import SharedIcon from "../../../components/Shared/SharedIcon" type AddWalletRowProps = { + id: string icon: string label: string url?: string @@ -14,6 +15,7 @@ type AddWalletRowProps = { } export function AddWalletRow({ + id, icon, url, label, @@ -21,6 +23,7 @@ export function AddWalletRow({ }: AddWalletRowProps): JSX.Element { return ( { const options = [ { + id: "importSeed", label: t("options.importSeed"), icon: "add_wallet/import.svg", url: OnboardingRoutes.IMPORT_SEED, isAvailable: true, }, { + id: "importPrivateKey", label: t("options.importPrivateKey"), icon: "key-light.svg", url: OnboardingRoutes.IMPORT_PRIVATE_KEY, isAvailable: true, }, { + id: "ledger", label: t("options.ledger"), icon: "add_wallet/ledger.svg", url: OnboardingRoutes.LEDGER, isAvailable: isLedgerSupported, }, { + id: "viewOnly", label: t("options.readOnly"), icon: "add_wallet/preview.svg", url: OnboardingRoutes.VIEW_ONLY_WALLET, @@ -101,10 +108,10 @@ export default function AddWalletOptions(): JSX.Element { return
  • } - const { label, icon, url } = option + const { id, label, icon, url } = option return (
  • - +
  • ) })} diff --git a/ui/pages/Onboarding/Tabbed/ImportSeed.tsx b/ui/pages/Onboarding/Tabbed/ImportSeed.tsx index 3eccbb9418..290eaa87e9 100644 --- a/ui/pages/Onboarding/Tabbed/ImportSeed.tsx +++ b/ui/pages/Onboarding/Tabbed/ImportSeed.tsx @@ -120,6 +120,7 @@ export default function ImportSeed(props: Props): ReactElement { />
  • Date: Fri, 8 Dec 2023 19:26:36 -0500 Subject: [PATCH 2/8] More ids for WTF --- .../DAppConnection/DAppConnectionInfoBar.tsx | 1 + ui/components/Shared/SharedIcon.tsx | 13 +++++++++++-- ui/pages/DAppConnect/DAppConnectPage.tsx | 4 ++-- ui/pages/NewCustomNetworkRequest.tsx | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ui/components/DAppConnection/DAppConnectionInfoBar.tsx b/ui/components/DAppConnection/DAppConnectionInfoBar.tsx index 4527c18e4d..609dfe0685 100644 --- a/ui/components/DAppConnection/DAppConnectionInfoBar.tsx +++ b/ui/components/DAppConnection/DAppConnectionInfoBar.tsx @@ -35,6 +35,7 @@ function DefaultConnectionPopover({ close }: PopoverProps): ReactElement { >
    +