From a674fbc6066126a6c017a18892ceaa01026dbff7 Mon Sep 17 00:00:00 2001 From: Ali Raza <87068339+aliraza556@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:20:26 +0500 Subject: [PATCH] Add Word Number Labels to Mnemonic Inputs in Wallet Restoration Flow (#202) * add word number label * added space double digit * add space single digit * fix lint error --------- Co-authored-by: Tomek Marciniak <16132011+mrcnk@users.noreply.github.com> --- packages/features/src/components/autocomplete.tsx | 13 +++++++++++-- .../features/src/onboarding/views/seed-import.tsx | 3 ++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/features/src/components/autocomplete.tsx b/packages/features/src/components/autocomplete.tsx index f5ae0a50..af2d6ae6 100644 --- a/packages/features/src/components/autocomplete.tsx +++ b/packages/features/src/components/autocomplete.tsx @@ -20,6 +20,7 @@ type AutocompleteProps = { autoFocus?: boolean testId: string inputProps: UseFormRegisterReturn + wordNumber: number } export const Autocomplete = ({ @@ -31,20 +32,28 @@ export const Autocomplete = ({ testId, inputProps, setValue, + wordNumber, }: AutocompleteProps) => { const filteredOptions = take(3, matchSorter(options, currentValue)) return ( -
+
9 ? "pl-8" : "pl-6", + )} placeholder={placeholder} autoFocus={autoFocus} onPaste={onPaste} autoComplete="off" data-testid={testId} {...inputProps} + style={{ position: "relative" }} /> + + {wordNumber}. + ))}