Skip to content

Commit

Permalink
fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrov-site committed May 10, 2024
1 parent a4f9ee7 commit 8a63ddb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ const Login = () => {
<Form onSubmit={handleSubmit} className="form">
<h1>{t('loginPage.title')}</h1>
<Form.Group className="mb-3">
<Form.Label>{t('loginPage.nickname')}</Form.Label>
<Form.Control required value={values.nickname} onChange={handleChange} type="text" name="nickname" isInvalid={!!errors.password} autoFocus />
<Form.Label htmlFor="nickname">{t('loginPage.nickname')}</Form.Label>
<Form.Control id="nickname" required value={values.nickname} onChange={handleChange} type="text" name="nickname" isInvalid={!!errors.password} autoFocus />
</Form.Group>
<Form.Group className="mb-3 position-relative">
<Form.Label>{t('loginPage.password')}</Form.Label>
<Form.Control required value={values.password} onChange={handleChange} type="password" name="password" isInvalid={!!errors.password} />
<Form.Label htmlFor="password">{t('loginPage.password')}</Form.Label>
<Form.Control id="password" required value={values.password} onChange={handleChange} type="password" name="password" isInvalid={!!errors.password} />
<Form.Control.Feedback type="invalid" tooltip>{errors.password}</Form.Control.Feedback>
</Form.Group>
<Button type="submit" className="w-100" variant="outline-primary">{t('loginPage.button')}</Button>
Expand Down

0 comments on commit 8a63ddb

Please sign in to comment.