diff --git a/infrastructure/eid-wallet/src/lib/ui/CopyableEName/CopyableEName.svelte b/infrastructure/eid-wallet/src/lib/ui/CopyableEName/CopyableEName.svelte new file mode 100644 index 000000000..ea780892e --- /dev/null +++ b/infrastructure/eid-wallet/src/lib/ui/CopyableEName/CopyableEName.svelte @@ -0,0 +1,65 @@ + + +
{label}
+ {#if copied} + + Copied! + + {/if} ++ {ename} +
+ +- Your existing eVault eName -
-- {duplicateEName} -
-Use the eName above to recover access to your existing eVault instead. diff --git a/infrastructure/eid-wallet/src/routes/(app)/main/legacy/KycUpgradeOverlay.svelte b/infrastructure/eid-wallet/src/routes/(app)/main/legacy/KycUpgradeOverlay.svelte index 2bf789903..8f05bedf1 100644 --- a/infrastructure/eid-wallet/src/routes/(app)/main/legacy/KycUpgradeOverlay.svelte +++ b/infrastructure/eid-wallet/src/routes/(app)/main/legacy/KycUpgradeOverlay.svelte @@ -13,6 +13,7 @@ import { PUBLIC_PROVISIONER_URL, } from "$env/static/public"; import type { GlobalState } from "$lib/global"; +import { CopyableEName } from "$lib/ui"; import * as Button from "$lib/ui/Button"; import { capitalize } from "$lib/utils"; import axios from "axios"; @@ -481,16 +482,10 @@ async function handleUpgrade() { eVault.
{#if duplicateEName} -- Your existing eVault eName -
-- {duplicateEName} -
-Use the eName above to recover access to your existing eVault instead. diff --git a/infrastructure/eid-wallet/src/routes/(auth)/onboarding/+page.svelte b/infrastructure/eid-wallet/src/routes/(auth)/onboarding/+page.svelte index af9755b0b..293f9d0ad 100644 --- a/infrastructure/eid-wallet/src/routes/(auth)/onboarding/+page.svelte +++ b/infrastructure/eid-wallet/src/routes/(auth)/onboarding/+page.svelte @@ -9,7 +9,7 @@ import { import { Hero } from "$lib/fragments"; import { GlobalState } from "$lib/global"; import { pendingRecovery } from "$lib/stores/pendingRecovery"; -import { ButtonAction, LoadingSheet } from "$lib/ui"; +import { ButtonAction, CopyableEName, LoadingSheet } from "$lib/ui"; import { capitalize, getCanonicalBindingDocString } from "$lib/utils"; import axios from "axios"; import { GraphQLClient } from "graphql-request"; @@ -1359,14 +1359,10 @@ onMount(async () => {
{/if} {#if duplicateExistingW3id} -- Existing eVault eName -
-- {duplicateExistingW3id} -
-