apps/web: fix disable inputs after login step
This commit is contained in:
parent
6ab9d44430
commit
8cad617acb
@ -34,7 +34,7 @@ function BaseForm({ children, onSubmit }: FormProps & PropsWithChildren) {
|
||||
return (
|
||||
<form className={styles.form} onSubmit={handleSubmit(onSubmit)}>
|
||||
<input
|
||||
disabled={step === 'telegram'}
|
||||
disabled={step !== 'login'}
|
||||
type="text"
|
||||
placeholder="Логин"
|
||||
required
|
||||
@ -42,7 +42,7 @@ function BaseForm({ children, onSubmit }: FormProps & PropsWithChildren) {
|
||||
{...register('login', { required: true })}
|
||||
/>
|
||||
<input
|
||||
disabled={step === 'telegram'}
|
||||
disabled={step !== 'login'}
|
||||
type="password"
|
||||
placeholder="Пароль"
|
||||
required
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user