Disable login/signup button when form is invalid
This commit is contained in:
parent
6a72c8881a
commit
3bdeeb9a0e
2 changed files with 8 additions and 2 deletions
|
|
@ -206,7 +206,10 @@ const LoginModal = (props: Props) => {
|
|||
ref={passwordInput}
|
||||
/>
|
||||
|
||||
<Button text={t('modals.login.buttons.confirm')} />
|
||||
<Button
|
||||
disabled={!formValid}
|
||||
text={t('modals.login.buttons.confirm')}
|
||||
/>
|
||||
</form>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
|
|
|||
|
|
@ -315,7 +315,10 @@ const SignupModal = (props: Props) => {
|
|||
ref={passwordConfirmationInput}
|
||||
/>
|
||||
|
||||
<Button text={t('modals.signup.buttons.confirm')} />
|
||||
<Button
|
||||
disabled={!formValid}
|
||||
text={t('modals.signup.buttons.confirm')}
|
||||
/>
|
||||
|
||||
<p className="terms">
|
||||
{/* <Trans i18nKey="modals.signup.agreement">
|
||||
|
|
|
|||
Loading…
Reference in a new issue