Skip to content

Commit

Permalink
Merge pull request #278 from terra-money/ST-1150-ui-feedback-mnemonic…
Browse files Browse the repository at this point in the history
…-and-seed-key-to-have-text-box-instead-of-text-input

feat: change mnemonic and seed key inputs to clear text.
  • Loading branch information
terencelimzhengwei authored Jan 9, 2024
2 parents 5b5e9f7 + c8bfd5c commit be6ca54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
5 changes: 1 addition & 4 deletions src/app/sections/CoinTypeMnemonicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ const CoinTypeMnemonicForm = () => {
label={t("Recovery phrase")}
error={errors.mnemonic?.message}
>
<Input
type="password"
{...register("mnemonic", { validate: validate.mnemonic })}
/>
<Input {...register("mnemonic", { validate: validate.mnemonic })} />
</InputWrapper>

<InputWrapper /* do not translate this */
Expand Down
6 changes: 1 addition & 5 deletions src/auth/modules/create/CreateWalletForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ const CreateWalletForm = () => {
}
>
<Input
type="password"
{...register("mnemonic", { validate: validate.mnemonic })}
/>
</InputWrapper>
Expand Down Expand Up @@ -199,10 +198,7 @@ const CreateWalletForm = () => {
/>
}
>
<Input
type="password"
{...register("mnemonic", { validate: validateSeed })}
/>
<Input {...register("mnemonic", { validate: validateSeed })} />
</InputWrapper>

<InputWrapper
Expand Down
13 changes: 6 additions & 7 deletions src/auth/modules/manage/ExportWalletForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
Input,
SubmitButton,
FlexColumn,
Flex,
Copy,
Banner,
Button,
Expand Down Expand Up @@ -134,12 +133,12 @@ const ExportWalletForm = ({ walletName }: Props) => {
<InputWrapper label={t("Password")} error={errors.password?.message}>
<Input {...register("password")} type="password" />
</InputWrapper>
<SubmitButton
className={styles.form__footer}
disabled={!password || !isValid}
variant="secondary"
label={t("Submit")}
/>
<SubmitButton
className={styles.form__footer}
disabled={!password || !isValid}
variant="secondary"
label={t("Submit")}
/>
</FlexColumn>
</Form>
)
Expand Down

0 comments on commit be6ca54

Please sign in to comment.