File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
frontends/web/src/components Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ export const PasswordInput = ({ seePlaintext, ...rest }: TPropsPasswordInput) =>
4343} ;
4444
4545type TProps = {
46- idPrefix ?: string ;
4746 pattern ?: string ;
4847 autoFocus ?: boolean ;
4948 disabled ?: boolean ;
@@ -55,7 +54,6 @@ type TProps = {
5554} ;
5655
5756export const PasswordSingleInput = ( {
58- idPrefix = '' ,
5957 pattern,
6058 autoFocus,
6159 disabled,
@@ -113,12 +111,13 @@ export const PasswordSingleInput = ({
113111 }
114112 } ;
115113
116- const warning =
114+ const warning = (
117115 capsLock && ! seePlaintext ? (
118116 < span className = { style . capsWarning } title = { t ( 'password.warning.caps' ) } >
119117 ⇪
120118 </ span >
121- ) : null ;
119+ ) : null
120+ ) ;
122121
123122 return (
124123 < Input
@@ -127,7 +126,7 @@ export const PasswordSingleInput = ({
127126 type = { seePlaintext ? 'text' : 'password' }
128127 pattern = { pattern }
129128 title = { title }
130- id = { ` ${ idPrefix } password` }
129+ id = " password"
131130 label = { label }
132131 placeholder = { placeholder }
133132 onInput = { handleFormChange }
@@ -136,7 +135,7 @@ export const PasswordSingleInput = ({
136135 value = { password }
137136 labelSection = {
138137 < Checkbox
139- id = { ` ${ idPrefix } seePlaintext` }
138+ id = " seePlaintext"
140139 onChange = { handleFormChange }
141140 checked = { seePlaintext }
142141 label = { t ( 'password.show' , {
@@ -151,6 +150,7 @@ export const PasswordSingleInput = ({
151150} ;
152151
153152type TPasswordRepeatProps = TProps & {
153+ idPrefix ?: string ;
154154 repeatLabel ?: string ;
155155 repeatPlaceholder : string ;
156156} ;
You can’t perform that action at this time.
0 commit comments