diff --git a/nym-wallet/src/components/textfields.tsx b/nym-wallet/src/components/textfields.tsx index c19d9db638..f8ff814bc8 100644 --- a/nym-wallet/src/components/textfields.tsx +++ b/nym-wallet/src/components/textfields.tsx @@ -1,6 +1,8 @@ import React, { useState } from 'react'; import { Box, IconButton, Stack, TextField } from '@mui/material'; import { Visibility, VisibilityOff } from '@mui/icons-material'; +import FormControlLabel from '@mui/material/FormControlLabel'; +import Checkbox from '@mui/material/Checkbox'; import { Error } from './Error'; export const MnemonicInput: React.FC<{ @@ -17,16 +19,22 @@ export const MnemonicInput: React.FC<{ value={mnemonic} onChange={(e) => onUpdateMnemonic(e.target.value)} multiline={!!showPassword} - rows={4} autoFocus fullWidth - InputProps={{ - endAdornment: ( - setShowPassword((show) => !show)}> - {showPassword ? : } - - ), + inputProps={{ + style: { + height: '160px', + }, }} + sx={{ + 'input::-webkit-textfield-decoration-container': { + alignItems: 'start', + }, + }} + /> + setShowPassword((show) => !show)} />} + label="Reveal my mnemonic" /> {error && }