Skip to content

Commit e683c06

Browse files
committed
fix: add labels to login form inputs
1 parent 428aff1 commit e683c06

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

frontend/src/pages/login/LoginPage.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,22 @@ function LoginForm() {
122122
)}
123123

124124
<div className="mb-3">
125-
<TextInput placeholder={texts.common.email} autoFocus key={form.key('email')} {...form.getInputProps('email')} />
125+
<TextInput
126+
placeholder={texts.common.email}
127+
autoFocus
128+
key={form.key('email')}
129+
label="username"
130+
{...form.getInputProps('email')}
131+
/>
126132
</div>
127133

128134
<div className="mb-3">
129-
<PasswordInput placeholder={texts.common.password} key={form.key('password')} {...form.getInputProps('password')} />
135+
<PasswordInput
136+
placeholder={texts.common.password}
137+
key={form.key('password')}
138+
label="password"
139+
{...form.getInputProps('password')}
140+
/>
130141
</div>
131142

132143
<Button type="submit" className="w-full">

0 commit comments

Comments
 (0)